/* ===== PEREK / SHIP CHAPTER PAGE ===== */
.book-text {
    direction: rtl;
    text-align: justify;
    line-height: 2;
    font-size: 15px;
    color: #2a2018;
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 400;
}

.book-text p {
    margin-bottom: 1.2em;
}

.book-text p:first-child::first-letter {
    font-size: 52px;
    font-weight: 900;
    float: right;
    margin-left: 8px;
    line-height: 0.85;
    color: #d1a64a;
    font-family: 'Frank Ruhl Libre', serif;
}

.page-number {
    text-align: center;
    font-size: 12px;
    color: #b0a898;
    font-family: 'Heebo', sans-serif;
    margin-top: 20px;
    letter-spacing: 0.1em;
}

/* ===== BACK / CHAPTER BUTTONS ===== */
.chapter-footer {
    text-align: center;
    padding: 40px 0 60px;
    background: #4f7680;
}

.back-btn {
    background: white;
    color: #4f7680;
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.2s;
    display: inline-block;
}

.back-btn:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
}

.chapter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.buy-chapter-btn {
    background: #3f6f77;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.buy-chapter-btn:hover {
    background: #2d535c;
    transform: translateY(-2px);
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    .book-text {
        font-size: 14px;
        line-height: 1.9;
        text-align: right; /* Better for mobile RTL */
    }

    .book-text p:first-child::first-letter {
        font-size: 42px;
        margin-left: 6px;
    }

    .page-number {
        font-size: 11px;
        margin-top: 15px;
    }

    .chapter-footer {
        padding: 30px 15px 50px;
    }

    .back-btn {
        padding: 11px 28px;
        font-size: 14px;
    }

    .chapter-buttons {
        gap: 12px;
        margin-top: 25px;
    }

    .buy-chapter-btn {
        padding: 11px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .book-text {
        font-size: 13px;
        line-height: 1.8;
    }

    .book-text p:first-child::first-letter {
        font-size: 36px;
        margin-left: 5px;
    }

    .page-number {
        font-size: 10px;
    }

    .chapter-footer {
        padding: 25px 10px 40px;
    }

    .back-btn,
    .buy-chapter-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .chapter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }
}
