/* ===========================
   Chapter Page Specific Styles
   =========================== */

/* Chapter Hero */
.chapter-hero {
    background: var(--gradient-hero);
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.chapter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    pointer-events: none;
}

.chapter-hero-content {
    position: relative;
    z-index: 2;
}

.chapter-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--golden-yellow);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.chapter-hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.chapter-hero-subtitle {
    font-size: 1.8rem;
    color: var(--light-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

.chapter-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
}

.chapter-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sticky Chapter Navigation */
.chapter-nav-sticky {
    position: sticky;
    top: 70px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 100;
    padding: 1rem 0;
}

.chapter-nav-sticky .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn-disabled {
    background: var(--grey);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.chapter-current {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 1.1rem;
}

/* Chapter Content */
.chapter-content {
    padding: 5rem 0;
    background: var(--white);
}

.chapter-content .container {
    max-width: 900px;
}

/* Content Sections */
.content-section {
    margin-bottom: 5rem;
}

.section-icon {
    font-size: 3rem;
    color: var(--saffron);
    text-align: center;
    margin-bottom: 2rem;
}

.content-heading {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    position: relative;
    padding-bottom: 1rem;
}

.content-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 2rem;
    font-weight: 500;
}

.content-section p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.emphasis-text {
    font-size: 1.3rem;
    color: var(--deep-orange);
    font-weight: 600;
    font-style: italic;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 153, 51, 0.1);
    border-left: 4px solid var(--saffron);
    border-radius: 5px;
}

.dramatic-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--terracotta);
    text-align: center;
    padding: 2rem;
    background: var(--light-gold);
    border-radius: 10px;
    margin: 2rem 0;
}

/* Alternate Section Background */
.section-alternate {
    background: var(--light-grey);
    padding: 4rem 3rem;
    border-radius: 20px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--warm-cream), var(--light-gold));
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 5px solid var(--saffron);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--saffron);
    margin-bottom: 1rem;
}

.highlight-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-brown);
}

/* Quote Style */
.quote-style {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--deep-red);
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
}

.quote-style .fa-quote-left,
.quote-style .fa-quote-right {
    font-size: 2rem;
    color: var(--saffron);
    opacity: 0.3;
}

/* Story Blocks */
.story-block {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.story-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.story-content h3 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

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

/* Inline Quote */
.inline-quote {
    background: var(--light-gold);
    padding: 1.5rem;
    border-left: 4px solid var(--golden-yellow);
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

.inline-quote cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--deep-orange);
    font-style: normal;
}

/* Insight Box */
.insight-box {
    background: rgba(255, 153, 51, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.insight-box i {
    font-size: 2rem;
    color: var(--saffron);
    flex-shrink: 0;
}

.insight-box p {
    margin: 0;
}

/* Teaching Grid */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.teaching-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--saffron);
}

.teaching-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.teaching-icon {
    font-size: 3rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

.teaching-card h3 {
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.teaching-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Miracle List */
.miracle-list {
    margin: 3rem 0;
}

.miracle-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.miracle-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.miracle-content h4 {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 0.8rem;
    font-family: 'Cinzel', serif;
}

.miracle-content p {
    margin: 0;
}

.reflection-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--terracotta);
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
}

/* Legacy Box */
.legacy-box {
    background: var(--warm-cream);
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.legacy-box h3 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
}

.legacy-list {
    list-style: none;
    padding: 0;
}

.legacy-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.legacy-list i {
    color: var(--saffron);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

/* Message Section */
.section-message {
    background: var(--light-grey);
    padding: 4rem 3rem;
    border-radius: 20px;
}

.message-box {
    text-align: center;
}

.message-icon {
    font-size: 4rem;
    color: var(--saffron);
    margin-bottom: 2rem;
}

.message-box h2 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
}

.message-text {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.message-emphasis {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--deep-orange);
    font-weight: 600;
    margin: 2rem 0;
}

.message-call {
    font-size: 1.2rem;
    line-height: 1.9;
    font-style: italic;
    color: var(--terracotta);
    margin: 2rem 0;
}

.message-final {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 153, 51, 0.2);
    border-radius: 10px;
}

/* Key Points */
.key-points {
    margin: 3rem 0;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.point-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.point-item p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
}

/* Closing Section */
.section-closing {
    background: linear-gradient(135deg, var(--saffron), var(--deep-orange));
    padding: 4rem 3rem;
    border-radius: 20px;
    color: var(--white);
}

.closing-box {
    text-align: center;
}

.closing-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.closing-text {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.closing-emphasis {
    font-size: 1.4rem;
    line-height: 1.9;
    font-weight: 600;
    margin: 2rem 0;
}

.closing-quote {
    background: rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.closing-quote i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--golden-yellow);
}

.closing-quote p {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 1rem;
}

.closing-quote cite {
    font-size: 1.1rem;
    font-style: normal;
    color: var(--light-gold);
}

/* Chapter Navigation Bottom */
.chapter-nav-bottom {
    background: var(--light-grey);
    padding: 3rem 0;
}

.chapter-nav-bottom .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--black);
}

.nav-card:not(.disabled):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.nav-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-card i {
    font-size: 2rem;
    color: var(--saffron);
}

.nav-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-label {
    font-size: 0.9rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.nav-home {
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
}

.nav-home i,
.nav-home .nav-label,
.nav-home .nav-title {
    color: var(--white);
}

.nav-next {
    justify-content: flex-end;
    text-align: right;
}

/* Make chapter cards clickable */
.chapter-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapter-hero-title {
        font-size: 2.5rem;
    }
    
    .chapter-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .chapter-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chapter-nav-sticky .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-heading {
        font-size: 2rem;
    }
    
    .story-block,
    .miracle-item {
        flex-direction: column;
    }
    
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .chapter-nav-bottom .container {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .chapter-hero {
        padding: 8rem 0 4rem;
    }
    
    .chapter-hero-title {
        font-size: 2rem;
    }
    
    .content-heading {
        font-size: 1.7rem;
    }
    
    .lead-text {
        font-size: 1.2rem;
    }
    
    .section-alternate,
    .section-message,
    .section-closing {
        padding: 2.5rem 1.5rem;
    }
}
