/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1100;
}

.lang-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 75, 162, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lang-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    border: 1px solid transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header and Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.navbar p {
    color: #7f8c8d;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-buttons button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-buttons button:hover,
.nav-buttons button.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.nav-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-buttons button:hover::before {
    left: 100%;
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chapter Grid (Overview Section) */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.chapter-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent #3498db transparent transparent;
    opacity: 0.1;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.chapter-card.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #27ae60;
    font-size: 1.5rem;
    font-weight: bold;
}

.chapter-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.chapter-card p {
    color: #34495e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ot-connections, .key-insights {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
}

.ot-connections {
    background: linear-gradient(145deg, #e8f4f8, #d6eaf8);
    border-left: 4px solid #3498db;
}

.key-insights {
    background: linear-gradient(145deg, #fdf2e9, #fadbd8);
    border-left: 4px solid #e67e22;
}

.ot-connections p, .key-insights p {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.ot-connections ul {
    list-style: none;
    padding-left: 0;
}

.ot-connections li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.3rem;
    color: #34495e;
}

.ot-connections li::before {
    content: '📖';
    position: absolute;
    left: 0;
    top: 0;
}

/* Typology Section */
.typology-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.typology-item {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 280px;
}

.typology-item::before {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(118, 75, 162, 0.2);
    z-index: 1;
    font-weight: bold;
}

.typology-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.typology-item:hover::before {
    color: rgba(118, 75, 162, 0.4);
    animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.type-section, .antitype-section {
    padding: 2rem;
    width: 50%;
    position: relative;
    z-index: 2;
}

.type-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border-right: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.type-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent, 
        rgba(102, 126, 234, 0.4) 20%, 
        rgba(118, 75, 162, 0.4) 80%, 
        transparent
    );
}

.antitype-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
}

.type-section h3, .antitype-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-section h3 {
    color: #667eea;
    position: relative;
    padding-bottom: 0.8rem;
}

.type-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, transparent);
    border-radius: 2px;
}

.antitype-section h3 {
    color: #764ba2;
    position: relative;
    padding-bottom: 0.8rem;
}

.antitype-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #764ba2, transparent);
    border-radius: 2px;
}

.type-section ul, .antitype-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.type-section ul li, .antitype-section ul li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.type-section ul li::before {
    content: "◈";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.antitype-section ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #764ba2;
    font-weight: bold;
}

.type-section ul li:hover, .antitype-section ul li:hover {
    transform: translateX(5px);
    color: #2d3748;
}

.type-card h3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.old-testament, .new-testament {
    padding: 2rem;
}

.old-testament {
    background: linear-gradient(145deg, #ffeaa7, #fdcb6e);
    border-right: 3px solid #e17055;
}

.new-testament {
    background: linear-gradient(145deg, #74b9ff, #0984e3);
    color: white;
}

.old-testament h4, .new-testament h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.old-testament h4 {
    color: #d63031;
}

.new-testament h4 {
    color: #ffffff;
}

.comparison ul {
    list-style: none;
    padding: 0;
}

.comparison li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-left: 1.5rem;
}

.old-testament li::before {
    content: '📜';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.new-testament li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Temple Worship Section */
.temple-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.temple-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.temple-area {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.temple-area:hover,
.temple-area.active {
    border-color: #f39c12;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.2);
    transform: translateY(-3px);
}

#holy-of-holies {
    background: linear-gradient(145deg, #fff9e6, #fef5e7);
    border-left: 6px solid #f39c12;
}

#holy-place {
    background: linear-gradient(145deg, #e8f8f5, #d5f4e6);
    border-left: 6px solid #27ae60;
}

#outer-court {
    background: linear-gradient(145deg, #edf2f7, #e2e8f0);
    border-left: 6px solid #718096;
}

.temple-area h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.temple-content h4 {
    color: #34495e;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 700;
}

.temple-content ul {
    list-style: none;
    padding: 0;
}

.temple-content li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.temple-content li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 0.4rem;
}

/* Feast Calendar */
.feast-calendar {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feast-calendar h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.feast-card {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.feast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.feast-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feast-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Covenant Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3498db, #9b59b6, #e74c3c);
    border-radius: 2px;
}

.covenant-item {
    position: relative;
    margin: 2rem 0;
    padding-left: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.covenant-item:hover {
    transform: translateX(10px);
}

.covenant-marker {
    position: absolute;
    left: 38px;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    z-index: 2;
}

.covenant-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.covenant-item.active .covenant-content {
    border-left-color: #e74c3c;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.covenant-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.covenant-details {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, #e8f4f8, #d6eaf8);
    border-radius: 10px;
    border-left: 3px solid #3498db;
}

.covenant-details p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Covenant Comparison */
.covenant-comparison {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.covenant-comparison h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.old-covenant, .new-covenant {
    padding: 1.5rem;
    border-radius: 15px;
}

.old-covenant {
    background: linear-gradient(145deg, #ffeaa7, #fdcb6e);
    border: 2px solid #e17055;
}

.new-covenant {
    background: linear-gradient(145deg, #74b9ff, #0984e3);
    color: white;
    border: 2px solid #2d3748;
}

/* Commentary Section */
.commentary-controls {
    margin-bottom: 2rem;
    text-align: center;
}

#chapter-select {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid #3498db;
    border-radius: 50px;
    background: white;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px;
}

#chapter-select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

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

.verse-study {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #9b59b6;
    transition: all 0.3s ease;
}

.verse-study:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.verse-study h4 {
    color: #8e44ad;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.verse-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #2c3e50;
    background: linear-gradient(145deg, #f8f9fa, #ecf0f1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid #3498db;
}

.commentary {
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.ot-connections, .typology {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
}

.verse-study .ot-connections {
    background: linear-gradient(145deg, #e8f5e8, #d4edda);
    border-left: 4px solid #27ae60;
}

.verse-study .typology {
    background: linear-gradient(145deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #f39c12;
}

.verse-study .ot-connections h5,
.verse-study .typology h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Footer */
footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    backdrop-filter: blur(10px);
}

footer p {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Temple Details Section Styles */
#temple-details {
    padding: 2rem;
}

.temple-intro {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.temple-intro p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
}

/* Temple Evolution */
.temple-evolution {
    margin-bottom: 3rem;
}

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

.evolution-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.evolution-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.evolution-card ul {
    list-style: none;
    padding: 0;
}

.evolution-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.evolution-card li:last-child {
    border-bottom: none;
}

/* Temple Detailed Layout */
.temple-detailed-layout {
    margin-bottom: 3rem;
}

.temple-detailed-layout > h3 {
    color: #764ba2;
    font-size: 1.8rem;
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.temple-detailed-layout > h3::before,
.temple-detailed-layout > h3::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea);
}

.temple-detailed-layout > h3::before {
    left: 2rem;
}

.temple-detailed-layout > h3::after {
    right: 2rem;
    background: linear-gradient(90deg, #667eea, transparent);
}

.temple-section-detail {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.temple-section-detail h4 {
    color: #764ba2;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.detail-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.detail-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.detail-item h5 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.detail-item h5::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.item-details {
    color: #4a5568;
    line-height: 1.8;
}

.item-details > p {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.item-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.item-details ul li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    position: relative;
}

.item-details ul li::before {
    content: "▸";
    position: absolute;
    left: -1rem;
    color: #667eea;
    font-weight: bold;
}

.item-details p strong {
    color: #2d3748;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Priestly Service */
.priestly-service {
    margin-bottom: 3rem;
}

.priestly-service > h3,
.sacrificial-system > h3,
.special-rituals > h3 {
    color: #764ba2;
    font-size: 1.8rem;
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.priest-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(118, 75, 162, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.priest-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.priest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.15);
}

.priest-card h4 {
    color: #764ba2;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.priest-details p {
    font-weight: 600;
    color: #2d3748;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.priest-details p:first-child {
    margin-top: 0;
}

.priest-details ul {
    list-style: none;
    margin-left: 0;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.priest-details ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.priest-details ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #764ba2;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sacrificial System */
.sacrificial-system {
    margin-bottom: 3rem;
}

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

.sacrifice-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sacrifice-card::before {
    content: "🔥";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.sacrifice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.sacrifice-card h4 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.sacrifice-card h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.sacrifice-details {
    color: #4a5568;
    line-height: 1.8;
}

.sacrifice-details p {
    margin-bottom: 1.2rem;
}

.sacrifice-details p strong {
    color: #2d3748;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.sacrifice-details ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.sacrifice-details ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.sacrifice-details ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Special Rituals */
.special-rituals {
    margin-bottom: 3rem;
}

.ritual-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ritual-section h4 {
    color: #764ba2;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.atonement-process,
.daily-service,
.red-heifer {
    color: #4a5568;
    line-height: 1.8;
}

.ritual-steps h5 {
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ritual-steps ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.ritual-steps ol li {
    margin-bottom: 0.8rem;
}

/* Materials Significance */
.materials-significance {
    margin-bottom: 3rem;
}

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

.material-card {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.material-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.material-card ul {
    list-style: none;
    padding: 0;
}

.material-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* Temple Summary */
.temple-summary {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.temple-summary h3 {
    color: #764ba2;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.summary-content {
    color: #4a5568;
    line-height: 1.8;
}

.summary-content ul {
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.summary-content ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.summary-content ul li::before {
    content: "✨";
    position: absolute;
    left: 0;
}

.hebrews-emphasis {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.hebrews-emphasis h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.hebrews-emphasis p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Typology Section Mobile */
@media (max-width: 768px) {
    .typology-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .typology-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .type-section, .antitype-section {
        width: 100%;
        padding: 1.5rem;
    }
    
    .type-section::after {
        display: none;
    }
    
    .type-section {
        border-right: none;
        border-bottom: 3px solid transparent;
        position: relative;
    }
    
    .type-section::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(102, 126, 234, 0.4) 20%, 
            rgba(118, 75, 162, 0.4) 80%, 
            transparent
        );
    }
    
    .typology-item::before {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

/* Language Switcher Mobile */
@media (max-width: 768px) {
    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .lang-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Temple Section Responsive Adjustments */
@media (max-width: 768px) {
    .detail-grid,
    .sacrifice-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item,
    .sacrifice-card,
    .priest-card {
        padding: 1.5rem;
    }
    
    .item-details ul,
    .sacrifice-details ul,
    .priest-details ul {
        padding: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar h1 {
        font-size: 2rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-buttons button {
        width: 100%;
        max-width: 200px;
    }
    
    main {
        padding: 1rem;
    }
    
    .chapter-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .feast-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .covenant-item {
        padding-left: 70px;
    }
    
    .covenant-marker {
        left: 8px;
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem;
    }
    
    .chapter-card,
    .verse-study,
    .temple-area {
        padding: 1rem;
    }
    
    .feast-card {
        padding: 1rem;
    }
    
    #chapter-select {
        min-width: auto;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar,
    .nav-buttons,
    footer {
        display: none;
    }
    
    .content-section {
        display: block !important;
        background: white;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .chapter-card,
    .verse-study {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Animation Classes */
.slide-in {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Accessibility Improvements */
.nav-buttons button:focus,
#chapter-select:focus,
.chapter-card:focus,
.covenant-item:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chapter-card,
    .verse-study,
    .temple-area,
    .feast-card {
        border: 2px solid #000;
    }
    
    .nav-buttons button {
        border: 3px solid #000;
    }
}