/*
 * Main Stylesheet
 * Riddlekin Publishing
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #F9F7F7;
}

a {
    color: #3F72AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c3dfff;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #112D4E;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.mobile-menu-button {
    display: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    padding: 0;
}

/* Site Main Flex Layout */
.site-main {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: flex-start;
}

.main-content-column {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

/* Home Content Area */
.home-content-area {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-content-area .post-content {
    padding: 0;
}

.home-content-area .post-content p:last-child {
    margin-bottom: 0;
}

.home-content-area .post-content h1,
.home-content-area .post-content h2,
.home-content-area .post-content h3 {
    margin-top: 1.5em;
}

.home-content-area .post-content h1:first-child,
.home-content-area .post-content h2:first-child,
.home-content-area .post-content h3:first-child {
    margin-top: 0;
}

/* Section Title */
.section-title-latest {
    font-size: 1.6rem;
    color: #112D4E;
    margin-top: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3F72AF;
    display: inline-block;
}


/* Hero Section - Full Width */
.hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    min-height: inherit;
}

.hero-text {
    max-width: 600px;
    color: #ffffff;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ffffff;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 84px;
    box-shadow: 0 4px 15px rgba(249, 168, 38, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #f15f45;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 168, 38, 0.4);
}

/* Company Description Section */
.company-description {
    background-color: #ebebeb;
    border-bottom: 1px solid #e8e8e8;
}

.description-content {
    max-width: 1254px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    font-family: 'Avenir', 'Avenir Next', 'Century Gothic', 'Trebuchet MS', 'Futura', 'Helvetica Neue', 'Arial', sans-serif;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content strong {
    font-weight: 600;
    color: #112D4E;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-image: url('/imgs/newsletter-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 0;
    overflow: hidden;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.newsletter-logo {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    padding: 10px;
}

.newsletter-logo img {
    max-width: 100%;
    height: auto;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    /*width: 100%;*/
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #3F72AF;
}

.newsletter-form button {
    padding: 15px 30px;
    background-color: #ffffff;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-form button:hover {
    background-color: #3F72AF;
    color: #ffffff;
    transform: translateY(-2px);
}

.newsletter-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 20px;
    line-height: 1.4;
}

.newsletter-disclaimer a {
    color: #ffffff;
    text-decoration: underline;
}

.newsletter-disclaimer a:hover {
    color: #3F72AF;
}

/* Newsletter Messages */
.newsletter-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.newsletter-message.success {
    background-color: rgba(46, 125, 50, 0.9);
    color: #ffffff;
}

.newsletter-message.error {
    background-color: rgba(244, 67, 54, 0.9);
    color: #ffffff;
}

/* Newsletter Confirmation Page */
.newsletter-confirmation {
    padding: 60px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-content {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-success h1 {
    color: #2E7D32;
    margin-bottom: 20px;
}

.confirmation-error h1 {
    color: #D32F2F;
    margin-bottom: 20px;
}

.confirmation-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.confirmation-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3F72AF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.confirmation-content .btn:hover {
    background-color: #112D4E;
    text-decoration: none;
}

/* Sidebar Styles */
.side-bar {
    width: 300px;
    padding: 0 15px;
    flex-shrink: 0;
}

.sidebar-stacked {
    width: 300px;
    padding: 0 15px;
    flex-shrink: 0;
}

/* Bottom Bar */
.bottom-bar {
    width: 100%;
    flex-basis: 100%;
    padding: 20px 15px 0 15px;
    margin-top: 30px;
    border-top: 1px solid #DBE2EF;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.bottom-bar .widget {
    flex: 1;
    margin-bottom: 0;
}

/* Widget Styles */
.widget {
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3F72AF;
    color: #112D4E;
}

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

.widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F9F7F7;
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: #3F72AF;
    text-decoration: none;
}

.widget a:hover {
    color: #112D4E;
}

.widget a.active {
    color: #112D4E;
    font-weight: 600;
}

/* Header */
.site-header {
    background-color: #E4E4E4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    margin-bottom: 0;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.3rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-family: serif;
    font-style: italic;
    text-align: center;
}

.site-title a {
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-title img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.site-title a:hover {
    color: #f92626;
}

/* Navigation */
.main-navigation {
    margin-bottom: 0;
    margin-left: auto;
}

.menu-toggle {
    display: none;
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu li {
    position: relative;
    margin-left: 20px;
    margin-bottom: 0;
}

.menu li:first-child {
    margin-left: 0;
}

.menu a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-weight: 560;
    color: #000000;
    text-decoration: none;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f92626;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.menu a:hover {
    color: #f92626;
    text-decoration: none;
}

/* Admin Bar */
.admin-bar {
    background-color: #c7c7c7;
    padding: 8px 15px;
    margin-top: 15px;
    border-radius: 4px;
    width: 100%;
    order: 3;
    flex-basis: 100%;
}

.admin-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.admin-bar li {
    margin: 5px 10px;
}

.admin-bar a {
    display: block;
    padding: 5px 10px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.admin-bar a:hover {
    background-color: #C5E0FF;
}

/* Posts List Items */
.posts-list {
    width: 100%;
    margin-bottom: 20px;
}

.post-item {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.post-thumbnail {
    flex: 0 0 200px;
    margin-bottom: 0;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail a:hover img {
    transform: scale(1.05);
}

.post-content-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    padding-left: 14px;
    padding-top: 14px;
}

.post-title a {
    color: #112D4E;
    text-decoration: none;
}

.post-title a:hover {
    color: #3F72AF;
}

.post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    padding-left: 14px;
}

.post-date, .post-category {
    display: inline-block;
    margin-right: 15px;
}

.post-category a {
    color: #666;
    text-decoration: underline;
}

.post-category a:hover {
    color: #3F72AF;
}

.post-excerpt {
    margin-bottom: 15px;
    flex-grow: 1;
    padding: 14px;
}

.post-excerpt p:last-child {
    margin-bottom: 0;
}

.post-read-more {
    margin-top: auto;
    align-self: flex-start;
}

.read-more-link {
    display: inline-block;
    padding: 6px 16px;
    background-color: #3F72AF;
    color: #fff;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more-link:hover {
    background-color: #112D4E;
    color: #fff;
    text-decoration: none;
}

/* Post Admin Actions */
.post-admin-actions {
    padding: 10px 20px;
    background-color: #f4f7f6;
    border-top: 1px solid #e8e8e8;
    text-align: right;
    margin-top: auto;
}

/* Category Groups */
.category-group-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #f0f0f0;
}

.mat-group-wrapper {
    background-color: #e6f7ff;
}

.cj-group-wrapper {
    background-color: #fff0e6;
}

.other-group-wrapper {
    background-color: #fff;
}

.category-group-title {
    font-size: 1.1rem;
    color: #112D4E;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3F72AF;
}

.category-group-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.category-group-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
}

.category-group-list li:last-child {
    border-bottom: none;
}

.category-group-list li a {
    color: #3F72AF;
}

.category-group-list li a:hover {
    color: #112D4E;
}

/* Single Post & Page Styles */
.single-post, .page {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 40px;
    flex-basis: 100%;
}

.single-post .post-header,
.page .page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.single-post .post-title,
.page .page-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.single-post .post-meta {
    margin-bottom: 0;
}

.single-post .post-thumbnail {
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.single-post .post-content,
.page .page-content {
    padding: 0;
    margin-top: 0;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.page .page-content h1,
.page .page-content h2,
.page .page-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.single-post .post-content h1:first-child,
.single-post .post-content h2:first-child,
.single-post .post-content h3:first-child,
.page .page-content h1:first-child,
.page .page-content h2:first-child,
.page .page-content h3:first-child {
    margin-top: 0;
}

.single-post .post-content p,
.single-post .post-content ul,
.single-post .post-content ol,
.page .page-content p,
.page .page-content ul,
.page .page-content ol {
    margin-bottom: 1.5em;
}

.single-post .post-content ul,
.single-post .post-content ol,
.page .page-content ul,
.page .page-content ol {
    padding-left: 1.8em;
}

.single-post .post-content img,
.page .page-content img {
    margin-top: 1em;
    margin-bottom: 1em;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Image Alignment */
.alignright {
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
}

.alignleft {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Archive Styles */
.full-width-container {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
    width: 100%;
}

.full-width-container .archive-header {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.full-width-container .archive-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.archive-header {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.archive-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Utility Classes */
.highlight {
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.stat {
    font-weight: bold;
    color: #2c5282;
}

.negative {
    color: #c53030;
}

.positive {
    color: #2f855a;
}

.quote {
    font-style: italic;
    border-left: 3px solid #718096;
    padding-left: 15px;
    margin: 15px 0;
}

/* Footer */
.site-footer {
    background-color: #2E2E2E;
    color: #DBE2EF;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
    justify-content: space-between;
}

.footer-info,
.footer-menu,
.footer-categories {
    padding: 0 15px;
    margin-bottom: 30px;
    flex-basis: 100%;
    max-width: 100%;
}

.site-footer h3,
.site-footer h4 {
    color: #F9F7F7;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer a {
    color: #DBE2EF;
    text-decoration: none;
}

.site-footer a:hover {
    color: #F9A826;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #7C7C7C;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Pagination */
.pagination {
    margin: 40px 0 20px 0;
    padding: 0;
    text-align: center;
    list-style-type: none;
}

.pagination li {
    display: inline-block;
    margin: 0 4px;
    list-style-type: none;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #DBE2EF;
    background-color: #fff;
    color: #3F72AF;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #e2e8f0;
    border-color: #cad5e8;
    color: #112D4E;
    text-decoration: none;
}

.pagination .active span,
.pagination span.current {
    background-color: #3F72AF;
    color: #fff;
    border-color: #3F72AF;
    cursor: default;
}

.pagination .disabled span {
    background-color: #f8fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: default;
}

.pagination .ellipsis span {
    border: none;
    background: none;
    padding: 8px 5px;
    color: #718096;
}

/* Edit Link */
.edit-link {
    display: inline-block;
    padding: 4px 10px;
    background-color: #667eea;
    color: #fff;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.edit-link:hover {
    background-color: #5a67d8;
    text-decoration: none;
    color: #fff;
}

/* No Posts Message */
.no-posts {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 40px;
    text-align: center;
    color: #718096;
    margin-top: 20px;
}

.no-posts p {
    margin-bottom: 0;
}



/* Books Section */
.books-section {
    background-color: #FFFFFF;
    padding: 60px 0;
    border-bottom: 1px solid #e8e8e8;
}

.books-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #112D4E;
    margin-bottom: 15px;
    font-weight: 700;
}

.books-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.books-slider-container {
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.books-slider {
    display: flex;
    transition: transform 0.3s ease;
    gap: 30px;
    padding: 0 20px;
}

.book-card {
    flex: 0 0 350px;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.book-cover {
    width: 100%;
    height: 350px;
    padding: 30px;
    overflow: hidden;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #112D4E;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-meta {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.book-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-status.published {
    background-color: #d4edda;
    color: #155724;
}

.book-status.active {
    background-color: #fff3cd;
    color: #856404;
}

.book-status.idea {
    background-color: #f8d7da;
    color: #721c24;
}

.book-status.archived {
    background-color: #e2e3e5;
    color: #6c757d;
}

.book-type {
    color: #6c757d;
    font-size: 0.85rem;
}

.book-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View All Books Card */
.view-all-books {
    flex: 0 0 280px;
    background: linear-gradient(135deg, #3F72AF 0%, #112D4E 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.view-all-books:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(63, 114, 175, 0.3);
    text-decoration: none;
    color: white;
}

.view-all-books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/imgs/books-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.view-all-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 30px;
}

.view-all-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.view-all-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
}

.view-all-arrow {
    font-size: 2rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.view-all-books:hover .view-all-arrow {
    transform: translateX(10px);
}

/* Navigation Buttons */
.books-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.books-nav-btn {
    width: 50px;
    height: 50px;
    background-color: #3F72AF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.books-nav-btn:hover {
    background-color: #112D4E;
    transform: scale(1.05);
}

.books-nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Book Detail Page */
.book-detail {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.book-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.book-detail-header {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.book-detail-cover {
    flex: 0 0 300px;
}

.book-detail-cover img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.book-detail-info {
    flex: 1;
}

.book-detail-title {
    font-size: 2.5rem;
    color: #112D4E;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.book-detail-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.book-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-weight: 600;
    color: #112D4E;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.1rem;
    color: #333;
}

.book-detail-description {
    background-color: #f8f9fa;
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
}

.book-detail-description h3 {
    color: #112D4E;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.book-detail-description p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.book-detail-notes {
    background-color: #fff3cd;
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
}

.book-detail-notes h3 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.book-detail-notes pre {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #f0e68c;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.back-to-books {
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 20px;
    background-color: #3F72AF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-to-books:hover {
    background-color: #112D4E;
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .books-section {
        padding: 40px 0;
    }
    
    .books-section h2 {
        font-size: 2rem;
    }
    
    .book-card {
        flex: 0 0 250px;
    }
    
    .books-slider {
        gap: 20px;
    }
    
    .book-detail-header {
        flex-direction: column;
        padding: 30px;
    }
    
    .book-detail-cover {
        flex: none;
        text-align: center;
    }
    
    .book-detail-cover img {
        max-width: 250px;
    }
    
    .book-detail-title {
        font-size: 2rem;
    }
    
    .book-detail-description,
    .book-detail-notes {
        padding: 20px 30px;
    }
}

@media (max-width: 767.98px) {
    .books-section {
        padding: 30px 0;
    }
    
    .books-section h2 {
        font-size: 1.8rem;
    }
    
    .book-card {
        flex: 0 0 220px;
    }
    
    .books-slider {
        gap: 15px;
        padding: 0 15px;
    }
    
    .book-cover {
        height: 280px;
        padding: 20px;
    }
    
    .book-info {
        padding: 15px;
    }
    
    .view-all-books {
        flex: 0 0 220px;
        min-height: 360px;
    }
    
    .view-all-content {
        padding: 20px;
    }
    
    .view-all-content h3 {
        font-size: 1.5rem;
    }
    
    .view-all-content p {
        font-size: 1rem;
    }
    
    .book-detail-container {
        margin: 0 15px;
    }
    
    .book-detail-header {
        padding: 20px;
    }
    
    .book-detail-title {
        font-size: 1.8rem;
    }
    
    .book-detail-subtitle {
        font-size: 1.1rem;
    }
    
    .book-detail-meta {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .book-detail-description,
    .book-detail-notes {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .book-card {
        flex: 0 0 200px;
    }
    
    .books-slider {
        gap: 10px;
        padding: 0 10px;
    }
    
    .book-cover {
        height: 250px;
        padding: 10px;
    }
    
    .view-all-books {
        flex: 0 0 200px;
        min-height: 320px;
    }
    
    .view-all-content h3 {
        font-size: 1.3rem;
    }
    
    .view-all-content p {
        font-size: 0.9rem;
    }
    
    .book-detail-cover img {
        max-width: 200px;
    }
    
    .book-detail-title {
        font-size: 1.6rem;
    }
}


/* Books Listing Page */
.books-listing {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.books-listing-header {
    text-align: center;
    margin-bottom: 50px;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.books-listing-header h1 {
    font-size: 2.5rem;
    color: #112D4E;
    margin-bottom: 15px;
    font-weight: 700;
}

.books-listing-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.books-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0;
}

.books-filter label {
    font-weight: 600;
    color: #112D4E;
}

.books-filter select {
    padding: 8px 15px;
    border: 2px solid #3F72AF;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.books-filter select:focus {
    outline: none;
    border-color: #112D4E;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-grid-item {
    position: relative;
}

.book-grid-item .book-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-grid-item .book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-grid-item .book-description {
    flex: 1;
    margin-bottom: 10px;
}

.book-pages {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.book-grid-item .book-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.book-grid-item .book-admin-actions .edit-link {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.book-grid-item .book-admin-actions .edit-link:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-decoration: none;
}

.no-books {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.no-books h2 {
    color: #112D4E;
    margin-bottom: 20px;
    font-size: 2rem;
}

.no-books p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.no-books a {
    color: #3F72AF;
    text-decoration: underline;
}

.no-books a:hover {
    color: #112D4E;
}

/* Book Not Found Page */
.book-not-found {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.book-not-found h1 {
    color: #112D4E;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.book-not-found p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.book-not-found a {
    color: #3F72AF;
    text-decoration: underline;
}

.book-not-found a:hover {
    color: #112D4E;
}

/* Responsive Design for Books Listing */
@media (max-width: 991.98px) {
    .books-listing {
        padding: 30px 0;
    }
    
    .books-listing-header {
        padding: 30px;
        margin-bottom: 40px;
    }
    
    .books-listing-header h1 {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767.98px) {
    .books-listing {
        padding: 20px 0;
    }
    
    .books-listing-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .books-listing-header h1 {
        font-size: 1.8rem;
    }
    
    .books-listing-subtitle {
        font-size: 1.1rem;
    }
    
    .books-filter {
        flex-direction: column;
        gap: 10px;
    }
    
    .books-filter select {
        width: 100%;
        max-width: 200px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .book-grid-item .book-cover {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .books-listing-header h1 {
        font-size: 1.6rem;
    }
    
    .books-listing-subtitle {
        font-size: 1rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .book-grid-item .book-cover {
        height: 250px;
    }
    
    .book-grid-item .book-info {
        padding: 15px;
    }
    
    .no-books {
        padding: 40px 20px;
    }
    
    .no-books h2 {
        font-size: 1.6rem;
    }
    
    .no-books p {
        font-size: 1rem;
    }
}

/* Responsive Styles */

/* Large desktop adjustments */
@media (min-width: 1400px) {
    .hero-banner {
        min-height: 700px;
    }
    
    .hero-content {
        max-width: 1400px;
        padding: 80px 60px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
}

/* Desktop styles */
@media (min-width: 1200px) {
    .hero-content {
        max-width: 1200px;
        padding: 70px 50px;
    }
}

/* Footer columns for larger screens */
@media (min-width: 768px) {
    .footer-info {
        flex-basis: 45%;
        max-width: 45%;
    }
    
    .footer-menu,
    .footer-categories {
        flex-basis: 25%;
        max-width: 25%;
    }
}

/* Tablet styles */
@media (max-width: 991.98px) {
    .hero-section {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .hero-banner {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 40px 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .company-description {
        padding: 60px 0;
    }
    
    .description-content {
        max-width: 800px;
        padding: 0 20px;
    }
    
    .description-content p {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
    }
    
    .newsletter-section {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .site-main {
        flex-direction: column;
    }
    
    .main-content-column {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 30px;
        order: 1;
    }
    
    .side-bar {
        width: 100%;
        padding: 0 15px;
        order: 2;
    }
    
    .posts-list {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-menu, .footer-categories {
        width: 100%;
        max-width: 100%;
        flex-basis: auto;
    }
    
    .bottom-bar {
        flex-direction: column;
    }
    
    .bottom-bar .widget {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .bottom-bar .widget:last-child {
        margin-bottom: 0;
    }
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .hero-banner {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 30px 20px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .company-description {
        padding: 50px 0;
    }
    
    .description-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .description-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-content {
        padding: 0 20px;
    }
    
    .newsletter-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .newsletter-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .newsletter-disclaimer {
        font-size: 0.85rem;
        margin-top: 15px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .site-header {
        padding: 10px 0;
    }
    
    .site-header .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
    }
    
    .site-branding {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .site-title {
        font-size: 1.6rem;
        justify-content: center;
        margin-bottom: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .site-title a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        text-decoration: none !important;
    }
    
    .site-title img {
        width: 28px;
        height: 28px;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    .site-title span {
        display: block !important;
        font-size: 0.7rem !important;
        margin-top: 5px !important;
        color: #666 !important;
        font-weight: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    
    .mobile-menu-button {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 10px auto;
        padding: 10px;
        background-color: #3F72AF;
        color: #ffffff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        text-align: center;
    }
    
    .mobile-menu-button.active {
        background-color: #112D4E;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 10;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .menu {
        flex-direction: column;
        background-color: #3F72AF;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        overflow: hidden;
    }
    
    .menu li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu li:last-child {
        border-bottom: none;
    }
    
    .menu a {
        display: block;
        padding: 12px 15px;
        color: #ffffff !important;
        text-align: center;
        font-size: 16px;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }
    
    .menu a:hover {
        background-color: rgba(255,255,255,0.1);
        color: #ffffff !important;
        text-decoration: none;
    }
    
    .menu a::after {
        display: none;
    }
    
    .admin-bar {
        order: 20;
        flex-basis: 100%;
        margin-top: 15px;
        padding: 10px;
        text-align: center;
    }
    
    .admin-bar ul {
        justify-content: center;
    }
    
    .admin-bar li {
        margin: 5px;
    }
    
    .post-item {
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .post-thumbnail {
        flex-basis: auto;
        width: 100%;
        max-height: 200px;
        margin-bottom: 15px;
    }
    
    .post-content-container {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .single-post, .page {
        padding: 20px;
    }
    
    .single-post .post-title, .page .page-title {
        font-size: 1.6rem;
    }
    
    .archive-title {
        font-size: 1.6rem;
    }
    
    .pagination li {
        margin: 0 2px;
    }
    
    .pagination a, .pagination span {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .hero-banner {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 25px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .company-description {
        padding: 40px 0;
    }
    
    .description-content {
        padding: 0 15px;
    }
    
    .description-content p {
        font-size: 0.95rem;
        margin-bottom: 1.3rem;
    }
    
    .newsletter-section {
        padding: 50px 0;
    }
    
    .newsletter-content {
        padding: 0 15px;
    }
    
    .newsletter-title {
        font-size: 1.6rem;
    }
    
    .newsletter-description {
        font-size: 0.95rem;
    }
    
    .confirmation-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .site-content {
        padding: 20px 0;
    }
    
    .site-branding {
        width: 100%;
        text-align: center;
    }
    
    .site-title {
        font-size: 1.4rem;
        justify-content: center;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .site-title a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        text-decoration: none !important;
    }
    
    .site-title img {
        width: 24px;
        height: 24px;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    .site-title span {
        display: block !important;
        font-size: 0.65rem !important;
        margin-top: 5px !important;
        color: #666 !important;
        font-weight: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    
    .mobile-menu-button {
        max-width: 180px;
        font-size: 14px;
        padding: 8px;
    }
    
    .menu a {
        padding: 10px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section-title-latest {
        font-size: 1.4rem;
    }
    
    .post-item {
        margin-bottom: 20px;
    }
    
    .post-content-container {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .single-post, .page {
        padding: 15px;
    }
    
    .single-post .post-title, .page .page-title {
        font-size: 1.4rem;
    }
    
    .widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .site-footer {
        padding: 30px 0 15px;
    }
    
    .footer-info, .footer-menu ul, .footer-categories ul {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .pagination a, .pagination span {
        padding: 4px 8px;
    }
}

/* Book Detail Page Redesigned Styles */
.book-detail-redesigned {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.book-detail-content {
    display: flex;
    gap: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Left Column - Desktop */
.book-left-column {
    flex: 0 0 350px;
    padding: 40px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.book-cover-container {
    margin-bottom: 30px;
    text-align: center;
}

.book-cover-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

/* Mobile Book Cover (hidden on desktop) */
.book-cover-mobile {
    display: none;
    text-align: center;
    margin-bottom: 25px;
}

.book-cover-mobile .book-cover-image {
    max-width: 250px;
}

/* Book Details Section */
.book-details-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.details-title {
    font-size: 1.4rem;
    color: #112D4E;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #3F72AF;
    padding-bottom: 10px;
}

.book-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-weight: 600;
    color: #112D4E;
    font-size: 0.95rem;
}

.detail-value {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.book-status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-status-badge.published {
    background-color: #d4edda;
    color: #155724;
}

.book-status-badge.active {
    background-color: #fff3cd;
    color: #856404;
}

.book-status-badge.idea {
    background-color: #f8d7da;
    color: #721c24;
}

.book-status-badge.archived {
    background-color: #e2e3e5;
    color: #6c757d;
}

/* Right Column - Desktop */
.book-right-column {
    flex: 1;
    padding: 40px;
}

.book-title {
    font-size: 2.8rem;
    color: #112D4E;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.book-subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.3;
}

.book-author {
    font-size: 1.1rem;
    color: #3F72AF;
    margin-bottom: 35px;
    font-weight: 500;
}

.book-summary-section {
    margin-bottom: 30px;
}

.summary-title {
    font-size: 1.5rem;
    color: #112D4E;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #3F72AF;
    padding-bottom: 10px;
    display: inline-block;
}

.book-summary-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.book-summary-content p {
    margin-bottom: 15px;
}

.book-summary-content p:last-child {
    margin-bottom: 0;
}

.book-summary-content h1,
.book-summary-content h2,
.book-summary-content h3,
.book-summary-content h4,
.book-summary-content h5,
.book-summary-content h6 {
    color: #112D4E;
    margin-top: 25px;
    margin-bottom: 15px;
}

.book-summary-content h1:first-child,
.book-summary-content h2:first-child,
.book-summary-content h3:first-child,
.book-summary-content h4:first-child,
.book-summary-content h5:first-child,
.book-summary-content h6:first-child {
    margin-top: 0;
}

.book-summary-content ul,
.book-summary-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.book-summary-content li {
    margin-bottom: 8px;
}

.book-summary-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #3F72AF;
    font-style: italic;
}

.book-summary-content strong,
.book-summary-content b {
    font-weight: 600;
    color: #112D4E;
}

.book-summary-content em,
.book-summary-content i {
    font-style: italic;
}

.book-summary-content u {
    text-decoration: underline;
}

/* Mobile Details Section (hidden on desktop) */
.book-details-mobile {
    display: none;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

/* Admin Sections */
.book-admin-notes {
    background-color: #fff3cd;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #ffeaa7;
}

.book-admin-notes h3 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.admin-notes-content pre {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #f0e68c;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
}

.book-admin-actions {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.book-admin-actions .edit-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3F72AF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.book-admin-actions .edit-link:hover {
    background-color: #112D4E;
    text-decoration: none;
    color: white;
}

/* Back to Books Link */
.back-to-books {
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 20px;
    background-color: #3F72AF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.back-to-books:hover {
    background-color: #112D4E;
    text-decoration: none;
    color: white;
}