/* 主容器 */
.bundle-77-78 .container {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    /* 水平置中 */
    margin-right: auto;
    /* 水平置中 */
    padding: 20px 100px 20px 100px;
    /* Reduced horizontal padding */
    /* --- Method C Styles --- */
    margin-bottom: 2.5rem;
    /* 為每個區塊下方添加外邊距以分隔 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 添加陰影 */
    border-radius: 5px;
    /* 添加圓角 */
    background-color: #fff;
    /* 確保背景色 */
}

/* 標題樣式 */
.bundle-77-78 .title {
    text-align: center;
    color: #6a5a4b;
    /* 標題顏色，接近圖片中的褐色 */
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: bold;
}

.bundle-77-78 .subtitle {
    text-align: center;
    color: #6a5a4b;
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 90%;
}

.bundle-77-78 .chapter {
    text-align: center;
    color: #6a5a4b;
    margin: 10px 0 20px;
    font-size: 1.2rem;
}

.bundle-77-78 .author {
    text-align: center;
    margin: 15px 0;
    font-size: 1rem;
}

/* 圓形點點的虛線 */
.bundle-77-78 .dotted-line {
    height: 8px;
    width: 100%;
    margin: 25px 0;
    background-image: radial-gradient(circle, #aaa 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: center;
}

/* 內容樣式 */
/* Add a general style for the content area */
.bundle-77-78 .content {
    max-width: 600px;
    margin: 0 auto;
    /* Center the content block */
}

.bundle-77-78 .content-title-left {
    text-align: left;
    color: #D88C52;
    margin: 30px 0 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.bundle-77-78 .content-title-center {
    text-align: center;
    color: #6a5a4b;
    margin: 70px 0 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.bundle-77-78 .circle-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.bundle-77-78 .circle-title>span {
    border: #D88C52 solid 10px;
    border-radius: 50px;
    display: inline-block;
    margin-right: 1rem;
}

.bundle-77-78 .content-paragraph {
    text-indent: 2em;
    margin-bottom: 15px;
    line-height: 1.8;
    /* font-size: 1rem; */
}

.bundle-77-78 p.content-paragraph strong {
    /* Ensure bold text within paragraphs is handled */
    font-weight: bold;
    color: #D88C52;
}

/* 引用樣式 */
.bundle-77-78 .quote {
    margin: 20px 0;
    padding-left: 2em;
}

/* Ensure blockquotes also get indentation and potentially different styling */
.bundle-77-78 blockquote.quote {
    padding: 15px 20px 15px 40px;
    /* Add padding */
    margin-left: 1em;
    /* Adjust margin */
    margin-right: 1em;
    border-left: 5px solid #6a5a4b;
    /* Thicker, brown border */
    font-style: normal;
    /* Override italic if needed */
    color: #333;
    /* Darker text */
    background-color: #f9f9f9;
    /* Light background */
    border-radius: 4px;
    position: relative;
    /* For pseudo-elements */
}

.bundle-77-78 blockquote.quote::before {
    margin-top: 5px;
}

.bundle-77-78 .quote-source {
    margin-top: 10px;
    margin-left: 2em;
    font-weight: bold;
}

/* 頁碼 */
.bundle-77-78 .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 8px 0;
}

.bundle-77-78 .page-circle {
    background: #6a5a4b;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 移除最後一個區塊的下外邊距 */
/* .bundle-77-78 .container:last-child {
    margin-bottom: 0;
} */

/* Extracted Inline Styles (Generic classes based on style46-50.css) */
.bundle-77-78 .page-12-title,
.bundle-77-78 .page-title {
    /* Added generic page title */
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.bundle-77-78 .page-12-author,
.bundle-77-78 .page-author {
    /* Added generic page author */
    text-align: center;
    margin-bottom: 30px;
}

.bundle-77-78 .page-12-content-title,
.bundle-77-78 .page-content-title {
    /* Added generic content title */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #6a5a4b;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-indent: 0;
}

.bundle-77-78 .page-13-quote,
.bundle-77-78 .page-20-quote-1,
.bundle-77-78 .page-quote {
    /* Added generic quote */
    margin-left: 2em;
}

.bundle-77-78 .page-14-list-1,
.bundle-77-78 .page-14-list-2,
.bundle-77-78 .page-15-list,
.bundle-77-78 .page-17-list,
.bundle-77-78 .page-list {
    /* Added generic list */
    list-style-type: none;
    padding-left: 2em;
    margin-bottom: 15px;
}

.bundle-77-78 .page-17-h4,
.bundle-77-78 .page-19-h4,
.bundle-77-78 .page-h4 {
    /* Added generic H4 */
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
}

.bundle-77-78 .page-20-quote-2,
.bundle-77-78 .quote-bold {
    /* Added generic bold quote */
    margin-left: 2em;
    font-weight: bold;
}

/* Grid Layout (Generic class based on style46-50.css) */
.bundle-77-78 .page-grid-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Figure Layout (Generic class based on style46-50.css) */
.bundle-77-78 .page-figure {
    margin: 0;
    /* Reset margin for figures */
}

.bundle-77-78 .page-figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bundle-77-78 .page-figure figcaption {
    text-align: center;
    font-size: 0.9em;
    /* Slightly smaller caption text */
    color: #555;
    /* Dimmer caption text */
    margin-top: 5px;
}

/* MODIFIED: Scoped .fixed-vertical-label styles for bundle 77-78 */
/* Base layout for fixed-vertical-label when bundle 77-78 is active */
.bundle-77-78-active .fixed-vertical-label {
    position: fixed;
    top: 30px;
    left: 30px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: #6a5a4b;
    color: white;
    padding: 10px 8px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 1rem;
    font-weight: bold;
}

/* Source Logo Style */
.bundle-77-78 .source-logo {
    height: 1em;
    vertical-align: -0.125em;
    margin-left: 0.3em;
}

.bundle-77-78 .image-wrap-right {
    float: right;
    margin-left: 3rem;
    margin-top: 0;
    /* Align top */
    /* margin-right: 2rem; */
    max-width: 35%;
    /* Adjust width relative to container */
    height: auto;
}

.bundle-77-78 .image-wrap-right figcaption {
    margin-top: 0.25rem;
}

.bundle-77-78 .image-wrap-right h3 {
    /* Style the title within the wrapped figure */
    background-color: #6a5a4b;
    /* Theme brown */
    color: white;
    width: 130px;
    /* Adjusted size */
    height: 130px;
    /* Adjusted size */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    /* Stack lines vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.6rem;
    /* Base size for "淨土宗" */
    line-height: 1.3;
    margin: 0 auto 15px auto !important;
    /* Center block and add bottom margin */
    padding: 10px;
    box-sizing: border-box;
    font-weight: bold;
    /* Make top text bold */
}

.bundle-77-78 .image-wrap-right h3 br {
    display: none;
    /* Hide <br> as flex handles line break */
}

.bundle-77-78 .image-wrap-right h3 span.small-text {
    font-size: 1.1rem;
    /* Smaller size for "小常識" */
    font-weight: normal;
    /* Normal weight for smaller text */
    margin-top: 5px;
    /* Space between lines */
}

/* 清除浮動 */
.bundle-77-78 .container::after,
.bundle-77-78 .content::after {
    /* Ensure content also clears floats */
    content: "";
    display: table;
    clear: both;
}

/* RWD設定 (Assuming these are the same as style63-67.css) */
@media (max-width: 768px) {
    .bundle-77-78-active .fixed-vertical-label {
        font-size: 11px;
        padding: 2px 0px;
        left: 0px;
        line-height: 1.2;
    }

    .bundle-77-78 .container {
        padding: 15px 10px;
        margin-bottom: 2rem;
    }

    .bundle-77-78 .title {
        font-size: 1.8rem;
    }

    .bundle-77-78 blockquote.quote {
        margin-left: 0.5em;
        /* Adjust quote margin */
        margin-right: 0.5em;
        padding-left: 20px;
    }

    .bundle-77-78 .content-title-left,
    .bundle-77-78 .content-title-center,
    .bundle-77-78 .page-content-title {
        /* Generic content title */
        font-size: 1.2rem;
    }

    .bundle-77-78 .page-78 .image-wrap-right h3 {
        width: 110px;
        /* Adjust size for smaller screens */
        height: 110px;
        font-size: 1.4rem;
    }

    .bundle-77-78 .page-78 .image-wrap-right h3 span.small-text {
        font-size: 0.9rem;
    }

    .bundle-77-78 .page-h4 {
        /* Generic H4 */
        font-size: 1.1rem;
    }

    .bundle-77-78 .page-text {
        font-size: small;
    }

    .bundle-77-78 .page-circle {
        font-size: small;
        width: 25px;
        height: 25px;
    }

    /* Adjust grid for smaller screens */
    .bundle-77-78 .page-grid-content {
        grid-template-columns: 1fr;
        /* Stack grid items */
    }

    .bundle-77-78 .page-figure {
        margin-bottom: 15px;
    }
}

@media (max-width: 580px) {
    .bundle-77-78 .page-78 .image-wrap-right {
        /* Keep floating right */
        margin-left: 1rem;
        /* Adjust margin for smaller screens */
        margin-right: 0;
        /* Remove potential right margin */
        margin-bottom: 0.5rem;
        /* Add space below */
        max-width: 45%;
        /* Adjust width */
    }

    .bundle-77-78 .page-77 .image-wrap-right {
        max-width: 40%;
        /* Example: keep it smaller */
        margin-left: 1rem;
    }

    .bundle-77-78 .container {
        padding: 15px 15px;
    }

    .bundle-77-78 blockquote.quote {
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        border-left-width: 4px;
    }
}

@media (max-width: 480px) {
    .bundle-77-78 .title {
        font-size: 1.5rem;
    }

    .bundle-77-78 .content-title-left,
    .bundle-77-78 .content-title-center,
    .bundle-77-78 .page-content-title {
        font-size: 1.1rem;
    }

    .bundle-77-78 .page-h4 {
        font-size: 1rem;
    }

    .bundle-77-78 .page-77 .image-wrap-right {
        max-width: 40%;
        /* Example */
    }
}