/* --- Main Styling --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

html {
    min-height: 100%;
}

@media (min-width: 769px) {
    html {
        min-width: 900px;
    }
    
    body {
        min-width: 900px;
    }
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Garamond', 'Georgia', 'Times New Roman', serif;
    background-color: #0a0a0a;
    color: #c9c9c9;
    min-height: 100vh;
}

.container {
    background-color: #0f0f0f;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 20px 100px 20px;
    margin-top: 72px;
    margin-bottom: 60px;
}

a {
    color: #9a9a9a;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

a:hover {
    color:#b8b8b8;
}

a::after {
    color:#9a9a9a;
    text-decoration: none;
}

.box-shadow-bottom {
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.box-shadow-top {
    box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.8);
}

.navbar {
    background: #162430;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-wrap: nowrap;
    width: 100%;
    border-bottom: 1px solid #233545;
    height: 72px;
    z-index: 999; 
}

.navbar-inner {
    padding: 0 20px;
    height: 100%;
    font-family: 'Garamond', 'Georgia', 'Times New Roman', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c9c9c9;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    margin-right: 15px;
}

.navbar-logo {
    vertical-align: middle;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    z-index: 2;
}

.navbar-item {
    margin: 25px 10px 0 10px;
    color: #c9c9c9;
    text-decoration: none;
    font-size: 1.25em;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: #9a9a9a;
}

/* Hamburger menu button (visible on mobile) */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #c9c9c9;
    font-size: 1.5em;
    cursor: pointer;
}

#navbar-title {
    margin: 5px;
    display:flex; 
    flex-direction:row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #c9c9c9;
    font-size: 1em;
    transition: color 0.3s ease;
}

#navbar-title:hover {
    color: #9a9a9a;
    text-decoration: none;
    cursor: pointer;
}

#navbar-title:active {
    color: #c9c9c9;
    text-decoration: none;  
}

#navbar-title:focus {
    color: #c9c9c9;
    text-decoration: none;
}

footer {
    background: #162430;
    color: #c9c9c9; 
    text-align: center; 
    height: 60px;
    width: 100%;
    border-top: 1px solid #233545;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 998;
}

.footer-links {
    margin: 5px 20px 0 20px; 
    white-space: nowrap; 
    height: 35px;
    font-size: 1.5em;
}

.footer-links a {
    margin: 0 5px; 
    color: #9a9a9a;  
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #b8b8b8;
    text-decoration: none;
    cursor: pointer;
}

.footer-links a:active {
    color: #9a9a9a;
    text-decoration: none;  
}

.footer-links a:focus {
    color: #9a9a9a;
    text-decoration: none;
}

#main-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 15px 40px 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- HOME PAGE STYLES --- */

.home-header {
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
}

.home-title {
    font-size: 4em;
    margin: 0 0 20px 0;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 3px;
}

.home-tagline {
    font-size: 1.5em;
    color: #9a9a9a;
    margin: 0;
    font-weight: 300;
}

.home-intro {
    max-width: 700px;
    text-align: center;
    margin: 0 auto 20px auto;
    color: #ababab;
    font-size: 1.2em;
    line-height: 1.8;
}

.home-page-img {
    max-width: 650px;
    width: 100%;
    height: auto;
    margin: 20px 5px 5px 5px;
}

.home-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.home-section {
    background-color: rgba(15, 15, 15, 0.8);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.home-section:hover {
    border-color: #2a2a2a;
    transform: translateY(-2px);
}

.home-section h2 {
    color: #d0d0d0;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.home-section h2 i {
    margin-right: 10px;
    color: #7a7a7a;
}

.home-section p {
    color: #9a9a9a;
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-size: 1.1em;
}

.home-section .section-link {
    display: inline-block;
    color: #ababab;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.home-section .section-link:hover {
    color: #c9c9c9;
}

.featured-posts {
    max-width: 800px;
    width: 100%;
    margin: 60px auto 0 auto;
}

.featured-posts h2 {
    color: #d0d0d0;
    font-size: 1.6em;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.featured-post-item {
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.featured-post-item:last-child {
    border-bottom: none;
}

.featured-post-item a {
    color: #b8b8b8;
    font-size: 1.25em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-item a:hover {
    color: #e0e0e0;
}

.featured-post-item .post-date {
    color: #9a9a9a;
    font-size: 0.95em;
    margin-top: 5px;
}

/* --- Quick Answers / FAQ Section --- */
.quick-answers {
    max-width: 800px;
    width: 100%;
    margin: 80px auto 0 auto;
    padding-top: 40px;
    border-top: 1px solid #2a2a2a;
}

.quick-answers h2 {
    color: #d0d0d0;
    font-size: 2em;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

.qa-item {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #1a1a1a;
}

.qa-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.qa-item h3 {
    color: #c9c9c9;
    font-size: 1.4em;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.qa-item p {
    color: #a0a0a0;
    font-size: 1.25em;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.qa-link {
    color: #9a9a9a;
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qa-link:hover {
    color: #d0d0d0;
}

/* --- BLOG STYLES --- */

#blog-container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.blog-header h1 {
    font-size: 3.2em;
    margin: 0 0 15px 0;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 2px;
}

.blog-subtitle {
    font-size: 1.4em;
    color: #9a9a9a;
    font-style: normal;
    margin: 0;
}

.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.blog-post-preview {
    padding: 30px 0;
    border-bottom: 1px solid #1a1a1a;
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.post-preview-title {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 400;
    line-height: 1.3;
}

.post-preview-title a {
    color: #c9c9c9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-preview-title a:hover {
    color: #e0e0e0;
}

.post-preview-meta {
    color: #9a9a9a;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.post-preview-excerpt {
    color: #a0a0a0;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 1.25em;
}

.read-more {
    display: inline-block;
    color: #9a9a9a;
    text-decoration: none;
    font-size: 1.15em;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #b8b8b8;
}

.no-posts {
    text-align: center;
    color: #9a9a9a;
    font-style: normal;
    padding: 60px 20px;
}

/* --- POST STYLES --- */

#post-container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.post-title {
    font-size: 2.7em;
    margin: 0 0 20px 0;
    color: #e0e0e0;
    font-weight: 300;
    line-height: 1.2;
}

.post-meta {
    color: #9a9a9a;
    font-size: 1.15em;
}

.post-content {
    color: #b8b8b8;
    line-height: 1.8;
    font-size: 1.1em;
}

.post-content h1 {
    font-size: 2.2em;
    color: #d0d0d0;
    margin: 50px 0 25px 0;
    font-weight: 400;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
}

.post-content h2 {
    font-size: 1.8em;
    color: #c9c9c9;
    margin: 40px 0 20px 0;
    font-weight: 400;
}

.post-content h3 {
    font-size: 1.5em;
    color: #b8b8b8;
    margin: 30px 0 15px 0;
    font-weight: 400;
}

.post-content p, .post-content li, .post-content blockquote, .post-content pre,
.post-content b, .post-content strong, .post-content i, .post-content em,
.post-content time, .post-content a {
    margin: 0 0 20px 0;
    font-size: 1.25em;
}

.post-content a {
    color: #ababab;
    text-decoration: underline;
    text-decoration-color: #4a4a4a;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #c9c9c9;
    text-decoration-color: #9a9a9a;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin: 10px 0;
    line-height: 1.7;
}

.post-content li p { 
    font-size: 1.1em;
}

.post-content blockquote {
    border-left: 3px solid #3a3a3a;
    margin: 30px 0;
    padding: 15px 25px;
    background-color: #0a0a0a;
    font-style: normal;
    color: #ababab;
}

.post-content code {
    background-color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #a8a8a8;
}

.post-content pre {
    background-color: #0a0a0a;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #2a2a2a;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content strong {
    color: #d0d0d0;
    font-weight: 600;
    font-size: 1.05em;
}

.post-content em {
    color: #a8a8a8;
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: #4a4a4a;
    text-underline-offset: 2px;
    font-size: 1.05em;
}

.post-img {
    max-width: 90%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.post-img-desc {
    font-size: 1em;
    color: #bababa;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

.back-to-blog {
    color: #9a9a9a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #b8b8b8;
}

/* --- CHAPTER SUMMARY STYLES --- */

.book-info {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.chapter-count {
    color: #9a9a9a;
    margin-left: 5px;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.book-author {
    color: #ababab;
}

/* Book summary intro section */
.book-summary-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.book-summary-intro .book-author {
    font-size: 1.5em;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.book-summary-intro .chapter-count {
    font-size: 1.3em;
    color: #7a7a7a;
}

/* Table of Contents */
.chapter-toc {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 50px;
}

.chapter-toc h2 {
    font-size: 1.6em;
    color: #d0d0d0;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.toc-list {
    columns: 2;
    column-gap: 40px;
    list-style-position: inside;
    padding-left: 0;
}

.toc-list li {
    margin: 8px 0;
    break-inside: avoid;
}

.toc-list a {
    color: #ababab;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: #c9c9c9;
}

/* Individual chapter summaries */
.chapter-summaries {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.chapter-summary {
    padding: 30px 0;
    border-bottom: 1px solid #1a1a1a;
}

.chapter-summary:last-child {
    border-bottom: none;
}

.chapter-summary h2 {
    font-size: 2em;
    color: #d0d0d0;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.word-count-badge {
    display: inline-block;
    background-color: #1a1a1a;
    color: #7a7a7a;
    font-size: 1em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.summary-text {
    margin-bottom: 25px;
}

.summary-text p, .summary-text li, .summary-text blockquote, .summary-text pre,
.summary-text b, .summary-text strong, .summary-text i, .summary-text em,
.summary-text time, .summary-text a {
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.25em;
}

/* Key events, characters, themes sections */
.key-events,
.characters-introduced,
.chapter-themes {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #0a0a0a;
    border-left: 3px solid #3a3a3a;
    border-radius: 0 4px 4px 0;
}

.key-events h3,
.characters-introduced h3,
.chapter-themes h3 {
    font-size: 1.3em;
    color: #c9c9c9;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.key-events ul,
.characters-introduced ul,
.chapter-themes ul {
    margin: 0;
    padding-left: 20px;
}

.key-events li,
.characters-introduced li,
.chapter-themes li {
    color: #a0a0a0;
    margin: 8px 0;
    line-height: 1.6;
}

.themes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0 !important;
}

.themes-list li {
    background-color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 1.1em;
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    color: #9a9a9a;
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #ababab;
}

/* --- REVIEWS PAGE STYLES --- */

#reviews-home-container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-header h1 {
    font-size: 2.8em;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.reviews-subtitle {
    color: #ababab;
    font-size: 1.4em;
    margin: 0;
}

/* Written Reviews Section */
.written-reviews-section {
    margin-bottom: 60px;
}

.written-reviews-section h2 {
    font-size: 1.9em;
    color: #c9c9c9;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.written-reviews-section h2 i {
    margin-right: 10px;
    color: #6a8a9a;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-preview {
    padding-bottom: 25px;
    border-bottom: 1px solid #222;
}

.review-preview:last-child {
    border-bottom: none;
}

.review-preview h3 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
}

.review-preview h3 a {
    color: #c9c9c9;
    transition: color 0.3s ease;
}

.review-preview h3 a:hover {
    color: #9ab8c8;
}

.review-preview .excerpt {
    color: #9a9a9a;
    line-height: 1.6;
    margin: 10px 0;
}

.no-reviews {
    color: #9a9a9a;
    font-style: italic;
    text-align: center;
    padding: 30px;
    font-size: 1.35em;
}

/* Hardcover Section */
.hardcover-section {
    background: #121212;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #222;
}

.hardcover-header {
    text-align: center;
    margin-bottom: 30px;
}

.hardcover-header h2 {
    font-size: 1.9em;
    color: #c9c9c9;
    margin-bottom: 10px;
}

.hardcover-header h2 i {
    margin-right: 10px;
    color: #d4af37;
}

.hardcover-subtitle {
    color: #ababab;
    font-size: 1.25em;
    margin: 0 0 10px 0;
}

.hardcover-subtitle a {
    color: #9ab8c8;
}

.hardcover-subtitle a:hover {
    color: #b8d8e8;
}

.last-updated {
    color: #7a7a7a;
    font-size: 1em;
    margin: 0;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 6px;
}

.sort-label {
    color: #9a9a9a;
    font-size: 1.2em;
    margin-right: 5px;
}

.sort-btn {
    background: #252525;
    border: 1px solid #333;
    color: #b3b3b3;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.15em;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #303030;
    border-color: #444;
    color: #e4e4e4;
}

.sort-btn.active {
    background: #2a3a4a;
    border-color: #4a6a7a;
    color: #c9c9c9;
}

.sort-btn .sort-icon {
    margin-left: 5px;
    font-size: 0.85em;
}

/* Loading and Error States */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #9a9a9a;
    font-size: 1.1em;
}

.loading-spinner i {
    margin-right: 10px;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #c87070;
    background: #2a1a1a;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Books Grid */
.hardcover-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Book Card */
.hardcover-book-card {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #252525;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hardcover-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.book-cover-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hardcover-book-card:hover .book-cover {
    transform: scale(1.02);
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: #3a3a3a;
    font-size: 4em;
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.3em;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.book-title a {
    color: #d0d0d0;
    transition: color 0.2s ease;
}

.book-title a:hover {
    color: #9ab8c8;
}

.book-author {
    color: #9a9a9a;
    font-size: 1.15em;
    margin: 0 0 5px 0;
}

.book-year {
    color: #9a9a9a;
    font-size: 1.1em;
    margin: 0 0 10px 0;
}

.book-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.book-rating .stars {
    color: #d4af37;
    font-size: 0.95em;
}

.book-rating .rating-value {
    color: #c9c9c9;
    font-weight: bold;
    font-size: 1.1em;
}

.book-rating .rating-count {
    color: #9a9a9a;
    font-size: 1.05em;
}

.book-genres {
    color: #5a7a8a;
    font-size: 1.05em;
    margin: 0 0 15px 0;
    font-style: italic;
}

.view-on-hardcover {
    display: inline-block;
    color: #7a9aaa;
    font-size: 1em;
    transition: color 0.2s ease;
}

.view-on-hardcover:hover {
    color: #9abacc;
}

.view-on-hardcover i {
    margin-left: 5px;
    font-size: 0.85em;
}

.no-books {
    text-align: center;
    color: #9a9a9a;
    padding: 40px;
    grid-column: 1 / -1;
}

/* --- OTHER STYLING SECTION PLACEHOLDER --- */

/* --- Responsive styles --- */
@media (max-width: 900px) {
    .container {
        padding: 10px 10px 100px 10px;
        align-items: flex-start;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #162430;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    }
    
    .navbar-menu.show {
        display: flex;
    }
    
    .navbar-item {
        margin: 10px 20px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(138, 138, 138, 0.2);
    }
    
    #main-page-container {
        padding: 20px 10px 20px 10px;
        justify-content: flex-start;
    }
    
    .home-header {
        padding: 40px 10px;
    }
    
    .home-title {
        font-size: 2.7em;
        letter-spacing: 2px;
    }
    
    .home-tagline {
        font-size: 1.4em;
    }
    
    .home-intro {
        font-size: 1.1em;
        padding: 0 10px;
        margin-bottom: 10px;
    }
    
    .home-section {
        padding: 25px 20px;
    }
    
    .home-section h2 {
        font-size: 1.3em;
    }
    
    #blog-container, #post-container {
        padding: 10px;
    }
    
    .blog-header h1 {
        font-size: 2.4em;
    }
    
    .post-title {
        font-size: 2em;
    }
    
    .post-preview-title {
        font-size: 1.7em;
    }
    
    .post-content {
        font-size: 1.2em;
    }
    
    .post-content h1 {
        font-size: 1.8em;
    }
    
    .post-content h2 {
        font-size: 1.6em;
    }
    
    /* Chapter summary responsive */
    .toc-list {
        columns: 1;
    }
    
    .chapter-toc {
        padding: 20px;
    }
    
    .chapter-summary h2 {
        font-size: 1.7em;
    }
    
    .key-events,
    .characters-introduced,
    .chapter-themes {
        padding: 12px 15px;
    }

    /* Reviews page responsive */
    #reviews-home-container {
        padding: 15px;
    }

    .reviews-header h1 {
        font-size: 2.4em;
    }

    .hardcover-section {
        padding: 20px;
    }

    .sort-controls {
        padding: 10px;
        gap: 8px;
    }

    .sort-btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .hardcover-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .book-cover-container {
        height: 220px;
    }

    /* Quick answers responsive */
    .quick-answers h2 {
        font-size: 1.6em;
    }

    .qa-item h3 {
        font-size: 1.2em;
    }

    .qa-item p {
        font-size: 1.05em;
    }

    .qa-link {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {

    /* Navbar font sizes */
    .navbar-brand {
        font-size: 1.6em;
    }
    
    .navbar-item {
        font-size: 1.05em;
    }
    
    .navbar-toggle {
        font-size: 1.3em;
    }
    
    #navbar-title {
        margin: 5px 2.5px;
        gap: 5px;
        font-size: 0.8em;
    }
    
    /* Home page font sizes */
    .home-title {
        font-size: 2.5em;
        letter-spacing: 1px;
    }
    
    .home-tagline {
        font-size: 1.2em;
    }
    
    /* Blog font sizes */
    .blog-header h1 {
        font-size: 2.2em;
    }
    
    .blog-subtitle {
        font-size: 1.2em;
    }
    
    .post-preview-title {
        font-size: 1.5em;
    }
    
    .post-preview-meta {
        font-size: 0.9em;
    }
    
    .post-preview-excerpt {
        font-size: 1.05em;
    }
    
    .read-more {
        font-size: 0.95em;
    }
    
    /* Post font sizes */
    .post-title {
        font-size: 1.8em;
    }
    
    .post-meta {
        font-size: 0.95em;
    }
    
    .post-content {
        font-size: 1em;
    }
    
    .post-content h1 {
        font-size: 1.6em;
    }
    
    .post-content h2 {
        font-size: 1.4em;
    }
    
    .post-content h3 {
        font-size: 1.3em;
    }
    
    .post-content p, .post-content li, .post-content blockquote, .post-content pre,
    .post-content b, .post-content strong, .post-content i, .post-content em,
    .post-content time, .post-content a {
        font-size: 1.05em;
    }
    
    .post-content code {
        font-size: 0.9em;
    }

    .post-img {
        max-width: 100%;
    }
    
    /* Chapter summary font sizes */
    .book-info {
        font-size: 1.1em;
    }
    
    .book-summary-intro .book-author {
        font-size: 1.3em;
    }
    
    .book-summary-intro .chapter-count {
        font-size: 1.1em;
    }
    
    .chapter-toc h2 {
        font-size: 1.4em;
    }
    
    .chapter-summary h2 {
        font-size: 1.5em;
    }
    
    .word-count-badge {
        font-size: 0.8em;
    }
    
    .summary-text p, .summary-text li, .summary-text blockquote, .summary-text pre,
    .summary-text b, .summary-text strong, .summary-text i, .summary-text em,
    .summary-text time, .summary-text a {
        font-size: 1.05em;
    }
    
    .key-events h3,
    .characters-introduced h3,
    .chapter-themes h3 {
        font-size: 1.1em;
    }
    
    .themes-list li {
        font-size: 0.9em;
    }
    
    .back-to-top {
        font-size: 0.9em;
    }

    /* Reviews page small screen */
    .reviews-header h1 {
        font-size: 2em;
    }

    .reviews-subtitle {
        font-size: 1em;
    }

    .written-reviews-section h2,
    .hardcover-header h2 {
        font-size: 1.5em;
    }

    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-label {
        text-align: center;
        margin-bottom: 5px;
    }

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

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

    .book-cover-container {
        height: 280px;
    }

    .book-info {
        padding: 15px;
    }

    .book-title {
        font-size: 1.1em;
    }
}

@media (max-width: 350px) {
    .post-img {
        display: none;
    }
}