.book-author,
.book-author a {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px; 
}

.book-details-single {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

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

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

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

.related-books {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-books h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-book-card {
    transition: transform 0.2s ease;
}

.related-book-card:hover {
    transform: translateY(-5px);
}

.related-book-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-book-image {
    margin-bottom: 8px;
}

.related-book-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-book-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

@media screen and (max-width: 1024px) {
  .related-books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
  .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
  .book-details-single {
        grid-template-columns: 1fr;
        margin-left: -25px;
    }
}

.book-detail-page {
    background-color: var(--navy);
    padding-top: 30px;
    padding-bottom: 60px;
}

.book-detail-header {
    background: white;
    border-radius: 8px;
    padding: 28px 40px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.book-detail-header-text {
    flex: 1;
}

.book-detail-header .book-author {
    margin-bottom: 0;
}

.book-detail {
    display: grid;
    grid-template-columns: 39% 1fr;
    gap: 40px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 40px;
}

.book-detail-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.book-detail-image img {
    max-width: 100%;
    height: auto;
    max-height: 750px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-detail-info {
    display: flex;
    flex-direction: column;
}

.book-author,
.book-author a {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.book-short-description-single {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

.book-inline-sharing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

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

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

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

.book-content-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.book-description-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 515px;
}

.book-description-container h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.book-description-single {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    -webkit-line-clamp: none;
}

.book-description-single p {
    margin-bottom: 20px;
}

.book-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.related-books {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-books h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-book-card {
    transition: transform 0.2s ease;
}

.related-book-card:hover {
    transform: translateY(-5px);
}

.related-book-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-book-image {
    margin-bottom: 8px;
}

.related-book-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-book-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

@media screen and (max-width: 1024px) {
  .book-content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1024px) {
  .book-sidebar {
        order: 1;
    }
}

@media screen and (max-width: 1024px) {
  .related-books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
  .book-detail {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
  .book-detail-image {
        margin-bottom: 20px;
        max-width: 750px;
        margin: 0 auto 30px auto;
    }
}

@media screen and (max-width: 768px) {
  .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
  .book-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.book-description-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.book-description-header h2 {
    margin: 0;
}

.book-desc-amazon-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
  .book-description-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

