body {
    font-family: 'Poppins', sans-serif;
    color: #333; /* Standard text color */
    background-color: #f8f9fa; /* Light background */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #212529; /* Darker headings */
    font-weight: 600;
}

a {
    color: #007bff; /* Default link color */
    text-decoration: none;
}

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

/* General Section Styling */
section {
    padding: 80px 0;
    overflow: hidden; /* Prevent content overflow issues */
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50; /* A slightly darker blue-grey for titles */
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #5aa9e6; /* Accent color */
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('photos/content/ancient-library-scrolls.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 100px 0;
}

.hero-section .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(88, 166, 230, 0.7) 100%); /* Blue-grey to light blue */
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p.lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-down-btn {
    background-color: #f39c12; /* Warm accent button */
    border-color: #f39c12;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.scroll-down-btn:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

/* Book Description Section */
.book-description-section {
    background-color: #ffffff;
}

.book-cover-img {
    max-width: 300px;
    height: auto;
    border: 5px solid #e0e0e0;
}

.book-purchase-btn {
    background-color: #28a745; /* Green for success/purchase */
    border-color: #28a745;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.book-purchase-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* About Author Section */
.about-author-section {
    background-color: #f8f9fa;
}

.author-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #dcdcdc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    background-color: #ffffff;
}

.feature-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.feature-img {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.feature-card .card-body {
    padding: 25px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid #5aa9e6;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    font-size: 1.05rem;
}

/* FAQ Section */
.faq-section {
    background-color: #ffffff;
}

#faqSearchInput {
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
}

.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background-color: #e9ecef;
    color: #333;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #5aa9e6;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-body {
    padding: 20px;
    background-color: #fdfdfd;
    color: #444;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

.contact-chat-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.chat-messages {
    height: 150px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #f0f2f5;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.chat-bubble.received {
    background-color: #e2e6ea;
    align-self: flex-start;
    margin-right: auto;
    color: #333;
}

.chat-bubble.sent {
    background-color: #5aa9e6;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
}

.contact-form .form-control:focus {
    border-color: #5aa9e6;
    box-shadow: 0 0 0 0.25rem rgba(90, 169, 230, 0.25);
}

.contact-form .btn-primary {
    background-color: #5aa9e6;
    border-color: #5aa9e6;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #4a9ad9;
    border-color: #4a9ad9;
}

.contact-info a {
    color: #5aa9e6;
}

.contact-info a:hover {
    color: #4a9ad9;
}

/* Extended Footer */
.extended-footer {
    background-color: #2c3e50; /* Dark blue-grey for footer */
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
    padding-bottom: 30px;
}

.extended-footer .footer-logo {
    max-width: 150px;
    filter: brightness(0) invert(1); /* Make logo white for dark background */
}

.extended-footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
}

.extended-footer ul {
    padding-left: 0;
}

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

.extended-footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.extended-footer ul li a:hover {
    color: #ffffff;
    text-decoration: none;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.newsletter-form .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.newsletter-form .btn-outline-light:hover {
    background-color: #5aa9e6;
    border-color: #5aa9e6;
    color: #fff;
}

.newsletter-feedback {
    color: #ffc107; /* Warning color for validation */
}

.extended-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .book-description-section .row {
        flex-direction: column;
    }

    .book-cover-img {
        margin-bottom: 20px;
    }

    .about-author-section .row {
        flex-direction: column;
    }

    .author-photo {
        margin-bottom: 20px;
    }

    .contact-chat-box {
        padding: 20px;
    }
}/* Styles for the .infoGuardBlock */
.infoGuardBlock {
    padding-top: 40px; /* Отступ сверху */
    padding-left: 20px; /* Отступ слева */
    padding-right: 20px; /* Отступ справа */
    padding-bottom: 40px;
    margin-bottom: 30px; /* Отступ снизу для разделения блоков */
    background-color: #ffffff; /* Белый фон для блока информации */
    border-radius: 8px; /* Скругленные углы */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Легкая тень */
}

/* Typography within .infoGuardBlock */
.infoGuardBlock h1 {
    font-size: 1.8rem; /* Чуть меньше, чем стандартный h1 */
    margin-top: 0; /* Убираем верхний отступ, т.к. есть padding-top у блока */
    margin-bottom: 15px;
    color: #2c3e50; /* Темно-сине-серый */
}

.infoGuardBlock h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c3e50;
}

.infoGuardBlock h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #34495e; /* Чуть светлее */
}

.infoGuardBlock h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 8px;
    color: #34495e;
}

.infoGuardBlock h5 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 6px;
    color: #4a627a; /* Еще светлее */
}

.infoGuardBlock p {
    font-size: 1rem; /* Стандартный размер шрифта для текста */
    margin-bottom: 15px; /* Отступ между параграфами */
    color: #333; /* Стандартный цвет текста */
}

.infoGuardBlock ul,
.infoGuardBlock ol {
    margin-bottom: 15px; /* Отступ после списков */
    padding-left: 25px; /* Отступ для маркеров/нумерации */
}

.infoGuardBlock li {
    margin-bottom: 8px; /* Отступ между элементами списка */
    line-height: 1.7; /* Улучшенная читаемость */
    color: #333;
}

.infoGuardBlock ul li {
    list-style-type: disc; /* Стандартный маркер для неупорядоченных списков */
}

.infoGuardBlock ol li {
    list-style-type: decimal; /* Стандартная нумерация для упорядоченных списков */
}
