body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: #212529;
}

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

.site-name {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #007bff;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .site-name {
        font-size: 1.25rem;
    }
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 56px; /* Adjust for fixed navbar height */
    padding-top: 150px !important;
}

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

.hero-section h1 {
    font-size: 2.5rem;
    color: #fff;
}

.hero-section p {
    font-size: 1.25rem;
    color: #f8f9fa;
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #007bff;
}

@media (min-width: 1024px) {
    section h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    section h2 {
        font-size: 1.8rem;
    }
}

.book-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.book-cover {
    height: 250px;
    object-fit: contain;
    width: 100%;
}

.book-card .card-body {
    display: flex;
    flex-direction: column;
}

.book-card .card-title {
    font-size: 1.25rem;
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.book-card .card-text {
    margin-bottom: 0.5rem;
}

.advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.advantage-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#statistics {
    position: relative;
    color: #fff;
}

#statistics .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

#statistics .stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

#statistics .stat-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.payment-icon img {
    max-height: 50px;
    object-fit: contain;
}

.payment-icon {
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.payment-icon:hover {
    border-color: #007bff;
}

.avatar-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.blog-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-read-more {
    text-decoration: none !important;
}

.email-break-all {
    word-break: break-all;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

#cartModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#checkout-form-container {
    padding-top: 1rem;
}

#cookieConsentBanner {
    z-index: 1070; /* Above modals */
}

.offcanvas-body .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-body .navbar-nav::-webkit-scrollbar {
    display: none;
}

.offcanvas-body .navbar-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.btn.whitespace-normal {
    white-space: normal;
}

.btn.break-words {
    word-break: break-words;
}

.btn.text-center {
    text-align: center;
}

.btn {
    text-decoration: none !important;
}

/* Responsive headings */
.display-3, .display-4 {
    font-family: 'Merriweather', serif;
}

@media (min-width: 1024px) {
    .display-3 {
        font-size: 2.5rem; /* Approx 40px */
    }
    .display-4 {
        font-size: 2.2rem; /* Approx 35px */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .display-3 {
        font-size: 2.2rem; /* Approx 35px */
    }
    .display-4 {
        font-size: 2rem; /* Approx 32px */
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 1.8rem; /* Approx 28px */
    }
    .display-4 {
        font-size: 1.5rem; /* Approx 24px */
    }
}

/* Specific adjustments for smaller screens */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem; /* Smaller for very small screens */
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    .book-card .card-title {
        font-size: 1rem;
    }
    .book-card .card-text.fs-4 {
        font-size: 1.25rem !important;
    }
    .advantage-item h3, .stat-item p.lead {
        font-size: 1rem;
    }
    .stat-item p.display-4 {
        font-size: 2.5rem !important;
    }
    .avatar-img {
        width: 50px;
        height: 50px;
    }
    .blog-img {
        height: 150px;
    }
}

/* Parent container styling for spacing */
.lawMatrixNode {
    padding-top: 20px; /* Top padding for the content area */
    padding-left: 20px; /* Left padding for the content area */
    padding-right: 20px; /* Right padding for the content area */
    padding-bottom: 20px; /* Bottom padding for the content area */
}

/* Heading styles for H1 */
.lawMatrixNode h1 {
    font-size: 1.2em; /* Moderately sized H1, not excessively large */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    font-weight: bold; /* Bold font weight */
    line-height: 1.3; /* Line height for readability */
}

/* Heading styles for H2 */
.lawMatrixNode h2 {
    font-size: 1.2em; /* Moderately sized H2 */
    margin-top: 1.3em;
    margin-bottom: 0.7em;
    font-weight: bold;
    line-height: 1.3;
}

/* Heading styles for H3 */
.lawMatrixNode h3 {
    font-size: 1.2em; /* Moderately sized H3 */
    margin-top: 1.1em;
    margin-bottom: 0.6em;
    font-weight: bold;
    line-height: 1.3;
}

/* Heading styles for H4 */
.lawMatrixNode h4 {
    font-size: 1.1em; /* Slightly larger than body text H4 */
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: bold;
    line-height: 1.3;
}

/* Heading styles for H5 */
.lawMatrixNode h5 {
    font-size: 1em; /* Similar to body text size, but bold H5 */
    margin-top: 0.9em;
    margin-bottom: 0.4em;
    font-weight: bold;
    line-height: 1.3;
}

/* Paragraph styles */
.lawMatrixNode p {
    font-size: 1em; /* Base font size for paragraphs */
    margin-top: 0; /* No top margin if following another block, or adjust as needed */
    margin-bottom: 1em; /* Space between paragraphs */
    line-height: 1.6; /* Good line height for readability */
}

/* Unordered list styles */
.lawMatrixNode ul {
    list-style-type: disc; /* Default bullet style for unordered lists */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for bullet points */
}

/* List item styles */
.lawMatrixNode li {
    font-size: 1em; /* Inherit or explicitly set font size for list items */
    margin-bottom: 0.5em; /* Space between individual list items */
    line-height: 1.6; /* Line height for readability within list items */
}

#blog .card-text{
    display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

main{
    overflow: hidden !important;
}