body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
}

.main-content {
    flex-grow: 1;
    max-width: 600px;
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    order: 2;
}

.ad-sidebar {
    width: 250px;
    min-width: 150px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ad-sidebar.right {
    order: 3;
}

.ad-sidebar.left {
    order: 1;
}

.book-title {
    font-size: 3em; /* Збільшуємо розмір */
    color: #ffd700; /* Змінюємо на золотий */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Додаємо тінь */
    letter-spacing: 2px; /* Додаємо невеликий інтервал між літерами */
    margin-bottom: 5px; /* Зменшуємо нижній відступ */
}

.book-cover {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.book-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
}

/* Нові стилі для секції покупки */
.buy-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.buy-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.buy-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.buy-button img {
    height: 24px;
    margin-right: 10px;
    filter: invert(1);
}

.amazon-btn {
    background-color: #FF9900;
}

.google-btn {
    background-color: #4285F4;
}

/* Стилі для додаткової інформації */
.tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: #333; /* Змінюємо колір на темно-сірий для кращої читабельності */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Залишаємо тінь без змін */
    margin-top: 5px;
    margin-bottom: 30px;
}


.additional-info {
    margin-top: 50px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.additional-info h3, .author-bio h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.additional-info p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* Медіа-запити для мобільних пристроїв */
@media (max-width: 768px) {
    .main-content {
        max-width: 100%;
        padding: 20px;
    }
    .book-title {
        font-size: 2em;
    }
    .book-description {
        font-size: 1em;
    }
    .container {
        flex-direction: column;
    }
    .ad-sidebar {
        width: 100%;
        order: initial;
    }
    .ad-sidebar.left, .ad-sidebar.right {
        order: initial;
    }
    .main-content {
        order: initial;
    }
}

.hidden-text {
    display: none;
}

.read-more-btn {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #34495e;
}

.book-description.expanded .hidden-text {
    display: block;
}

.image-gallery {
    margin-bottom: 20px;
    text-align: center;
}

.main-image-container {
    max-width: 100%;
    margin-bottom: 15px;
}

#main-book-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
    border-color: #2c3e50;
}

.hero-section {
	background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    padding: 100px 20px;
    text-align: center;
    font-size: 1.5rem;
    position: relative;
    border-radius: 10px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    font-size: 2em;
}

.hero-content {
    /* Це ваш контейнер з фоновим зображенням */
    position: relative;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content::before {
    /* Це напівпрозорий шар, який затемнює зображення */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Змініть значення '0.6' на менше, наприклад '0.3', щоб зменшити затемнення і зробити фон світлішим */
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 1; /* Має бути меншим за z-index тексту, щоб текст був зверху */
}

/* Стилі для спливаючого вікна Cookie */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85); /* Темний фон */
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
}

.cookie-consent-text a {
    color: #ffd700; /* Золотистий колір для посилань */
    text-decoration: underline;
}

.cookie-consent-buttons button {
    background-color: #2ecc71; /* Зелена кнопка */
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.cookie-consent-buttons button:hover {
    background-color: #27ae60;
}

.cookie-consent-buttons .manage-btn {
    background-color: #3498db; /* Синя кнопка */
}

.cookie-consent-buttons .manage-btn:hover {
    background-color: #2980b9;
}

.site-footer {
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    color: #555;
    font-size: 0.85em;
    order: 4; /* Розміщує футер внизу контейнера */
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    color: #555;
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #2c3e50;
}

.separator {
    color: #ccc;
}

/* --- Секція "Бонусний контент" --- */
.bonus-content {
    margin-top: 50px;
    padding: 40px;
    background-color: #2c3e50; /* Темний фон (як кнопка Read more) */
    color: #ecf0f1; /* Світлий текст для контрасту */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Сильна тінь для драматизму */
    text-align: left;
    border: 1px solid #ffd700; /* Тонка золота рамка */
    order: 4;
}

.bonus-content h2 {
    color: #ffd700; /* Золотий заголовок */
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2em; /* Більший шрифт */
    border-bottom: 3px solid #c0392b; /* Товста червона лінія */
    padding-bottom: 10px;
    text-transform: uppercase;
}

.bonus-content h3 {
     color: #c0392b; /* Червоний підзаголовок */
     margin-top: 35px;
     text-align: center;
}

.moral-summary {
    margin-top: 30px;
    padding: 20px;
    background-color: #34495e; /* Трохи світліший темний фон */
    border-radius: 5px;
    border: 1px solid #c0392b; /* Червона рамка */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.moral-summary p {
    text-align: justify;
    color: #ecf0f1;
}

.bonus-excerpt {
    border-left: 5px solid #ffd700; /* Товста золота лінія */
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #ecf0f1; /* Світлий колір тексту цитати */
    font-size: 1.1em;
}

.bonus-excerpt p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Новий стиль для кнопки "Explore" */
.explore-btn {
    display: inline-block;
    background-color: #c0392b; /* Червона кнопка */
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.explore-btn:hover {
    background-color: #e74c3c;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}