/* General Styles */
:root {
    --color-beige: #F5F5DC;
    --color-light-beige: #F8F8E7; /* Slightly lighter for backgrounds */
    --color-taupe: #D2B48C;
    --color-dark-brown: #8B4513;
    --color-burgundy: #f30c46;
    --color-soft-grey: #E0E0E0;
    --color-text-default: #333333;
    --color-text-light: #555555;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text-default);
    background-color: var(--color-light-beige);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--color-dark-brown);
}

.title {
    color: var(--color-burgundy);
}
.title:not(.is-spaced)+.subtitle{
    margin-top:0px ;
}
@media (max-width:575px) {
    .title{
        font-size: 1.6rem!important;
    }
}
.subtitle {
    color: var(--color-dark-brown);
}
.navbar-menu{

}
a {
    color: var(--color-burgundy);
}
.block-name-site{
    color: white;
}
@media (max-width:575px) {
    .block-name-site{
    color: white!important;
    font-size: 12px!important;
}
}
a:hover {
    color: var(--color-dark-brown);
}

.button.is-primary {
    font-size: 14px;
    background-color: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: white;
}

.button.is-primary:hover {
    background-color: #6a001a; /* Slightly darker burgundy */
    border-color: #6a001a;
}

.button.is-light {
    font-size: 14px;
    background-color: var(--color-taupe);
    border-color: var(--color-taupe);
    color: white;
}

.button.is-light:hover {
    background-color: #b89a7a; /* Slightly darker taupe */
    border-color: #b89a7a;
}

.box, .card {
    border-radius: 10px;
    background-color: var(--color-beige);
}

/* Custom Utility Classes */
.has-text-dark-brown {
    color: var(--color-dark-brown) !important;
}

.has-text-burgundy {
    color: var(--color-burgundy) !important;
}

.has-background-beige {
    background-color: var(--color-beige) !important;
}

.has-background-light-beige {
    background-color: var(--color-light-beige) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

.is-rounded {
    border-radius: 8px;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-item {
    color: white;
    font-weight: 600;
}

.navbar-item:hover {
    color: var(--color-burgundy)!important;
    background-color: transparent;
}

.navbar-burger {
    color: white;
}

.navbar-burger:hover {
    color: white;
    background-color:var(--color-burgundy);
}

/* Hero Section */
.hero-bg {
    background-image: url('assets/content/hero-background_83.jpg'); /* Use a subtle background image if desired */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 6rem; /* Extra padding for overlapping elements */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.7), rgba(128, 0, 32, 0.7)); /* Dark overlay */
    z-index: 1;
}

.hero-body > .container {
    position: relative;
    z-index: 2;
}

.hero-content-left .title, .hero-content-left .subtitle {
    color: white !important; /* Override for contrast on dark overlay */
}

.hero-content-left .title {
    font-size: 2.5rem;
    line-height: 1.1;
}
@media (max-width:575px) {
    .hero-content-left .title{
    font-size: 1.2rem;
    }
}
.hero-content-left .subtitle {
    font-size: 1.8rem;
    margin-top: 0px!important;
}
@media (max-width:575px) {
    .hero-content-left .subtitle {
    font-size: 1rem;
}
}
.hero-button {
    border-radius: 50px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    transform: rotate(-5deg); /* Slight rotation for dynamic feel */
    max-width: 450px; /* Constrain grid size */
    margin: 0 auto;
}

.hero-grid .grid-item {
    padding: 1rem;
    background-color: var(--color-beige);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-grid .grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.grid-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    transform: translateY(15px) translateX(-10px) rotate(3deg); /* Overlap effect */
    z-index: 3;
}

.grid-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    transform: translateY(-10px) translateX(10px) rotate(-2deg); /* Overlap effect */
    z-index: 2;
}

.grid-item-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    transform: translateY(-20px) translateX(5px) rotate(-4deg); /* Overlap effect */
    z-index: 4;
}

.grid-item-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    transform: translateY(5px) translateX(-5px) rotate(1deg); /* Overlap effect */
    z-index: 1;
}
.navbar-item img{
    width: 100%;
    height: 60px;
    object-fit: contain;
}
/* Welcome Section */
.welcome-section .content p {
    line-height: 1.8;
}

/* About Section */
.about-section .icon {
    margin-bottom: 0.5rem;
}

/* Services Section (Top Books) */
.tabs ul li a {
    border-bottom-color: var(--color-taupe);
    color: var(--color-dark-brown);
    font-weight: 600;
}

.tabs ul li.is-active a {
    border-bottom-color: var(--color-burgundy);
    color: var(--color-burgundy);
}
@media (max-width:575px) {
    .tabs ul{
        flex-direction: column;
    }
}
.tab-pane {
    display: none;
    padding: 2rem 0;
}

.tab-pane.is-active {
    display: block;
}

.tab-pane img {
    border: 3px solid var(--color-taupe);
}

/* Short Description Section */
.short-desc-section .join-button {
    border-radius: 50px;
}

/* Catalog Section */
.book-card {
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    background-color: var(--color-beige);
    border: 1px solid var(--color-soft-grey);
}

.book-card .card-image {
    flex-shrink: 0;
}

.book-card .card-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.book-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.book-card .content {
    flex-grow: 1;
        display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card .add-to-cart-button {
    border-radius: 50px;
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonial-bubble {
    position: relative;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: var(--color-beige);
    border: 1px solid var(--color-soft-grey);
    margin-bottom: 2rem; /* Space for the pseudo-element tail */
    min-height: 180px; /* Ensure consistent height for visual balance */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px; /* Position the tail */
    right: 30px; /* Adjust position */
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--color-beige); /* Tail color */
    z-index: 1;
}

/* FAQ Section */
.faq-step {
    display: none;
    padding: 2rem;
    background-color: var(--color-beige);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-step.is-active {
    display: block;
}

.faq-choice {
    border-radius: 50px;
    margin: 0.5rem;
}

.faq-question {
    background-color: white;
    border: 1px solid var(--color-soft-grey);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark-brown);
    transition: background-color 0.1s ease-in-out;
}

.faq-question-header:hover {
    background-color: var(--color-light-beige);
}

.faq-question-header .icon {
    transition: transform 0.1s ease-in-out;
}

.faq-question-header.is-active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-out;
}

.faq-answer.is-active {
    max-height: 200px; /* Adjust as needed for content */
    padding-bottom: 1rem;
}

/* Join Section */
.join-section .join-button {
    border-radius: 50px;
}

/* Footer */
.footer {
    background-color: var(--color-beige);
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid var(--color-soft-grey);
}

.footer-logo-link {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-link img {
    margin-right: 0.5rem;
}

.footer .menu-list a {
    color: var(--color-text-light);
}

.footer .menu-list a:hover {
    color: var(--color-burgundy);
    background-color: transparent;
}

.footer-accordion-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--color-dark-brown);
}

.footer-accordion-title .icon {
    transition: transform 0.1s ease-in-out;
}

.footer-accordion-title.is-active .icon {
    transform: rotate(180deg);
}

.footer-accordion-content {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-out;
}

.footer-accordion-content.is-active {
    display: block;
    max-height: 300px; /* Arbitrary large value to allow content to show */
}

@media screen and (min-width: 769px) {
    .footer-accordion-title .icon {
        display: none;
    }
    .footer-accordion-content {
        display: block !important;
        max-height: none !important;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-brown);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin-bottom: 0;
    margin-right: 1rem;
    color: white;
}

.cookie-banner a {
    color: var(--color-taupe);
    text-decoration: underline;
}

.cookie-banner .button {
    margin-left: 0.5rem;
    border-radius: 50px;
}

.cookie-banner .button.is-primary {
    background-color: var(--color-burgundy);
    border-color: var(--color-burgundy);
}


.cookie-banner .button.is-light {
    background-color: var(--color-taupe);
    border-color: var(--color-taupe);
    color: var(--color-dark-brown);
}

/* Modals */
.modal-card {
    border-radius: 10px;
    overflow: hidden;
}
@media (max-width:575px) {
    .button.is-primary{
        font-size: 14px;
    }
    .button.is-light {
            font-size: 14px;
    }
}
.modal-card-head, .modal-card-foot {
    background-color: var(--color-light-beige);
    border-bottom: 1px solid var(--color-soft-grey);
    border-top: 1px solid var(--color-soft-grey);
}

.modal-card-title {
    color: var(--color-dark-brown);
}

.modal-card-body {
    background-color: var(--color-beige);
    color: var(--color-text-default);
}

.modal .delete {
    background-color: var(--color-taupe);
}

.modal .delete:hover {
    background-color: var(--color-burgundy);
}

/* Cart specific styles */
#cart-items-container .cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#cart-items-container .cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details .title {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--color-dark-brown);
}

.cart-item-details .subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cart-item-controls .quantity-input {
    width: 60px;
    text-align: center;
    margin: 0 0.5rem;
    border-radius: 4px;
    border-color: var(--color-soft-grey);
}

.cart-item-controls .button {
    min-width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 4px;
}

.cart-item-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-burgundy);
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-remove {
    margin-left: 1rem;
    color: var(--color-taupe);
}

.cart-item-remove:hover {
    color: var(--color-burgundy);
}

#cart-summary .level-right .title {
    color: var(--color-burgundy);
}

#empty-cart-message {
    padding: 2rem;
    font-style: italic;
}

/* Switch for cookie settings */
.switch[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.switch[type="checkbox"] + label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px;
    height: 25px;
    background: var(--color-soft-grey);
    display: block;
    border-radius: 100px;
    position: relative;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.switch[type="checkbox"] + label:after {
    content: '';
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 90px;
    transition: 0.1s;
}

.switch[type="checkbox"]:checked + label {
    background: var(--color-burgundy);
}

.switch[type="checkbox"]:checked + label:after {
    left: calc(100% - 2.5px);
    transform: translateX(-100%);
}

.switch[type="checkbox"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

.switch + label {
    margin-left: 0.5rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hero-content-left {
        text-align: center;
    }

    .hero-content-left .buttons {
        justify-content: center;
    }

    .hero-grid-right {
        display: none; /* Hide complex grid on mobile */
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner p {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .cookie-banner .cookie-actions {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

    .cookie-banner .button {
        flex-grow: 1;
        margin: 0 0.25rem;
    }

    .modal-card {
        margin: 0 1rem;
    }

    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cart-item-image {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .cart-item-details, .cart-item-controls, .cart-item-price {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .cart-item-controls {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .cart-item-price {
        text-align: center;
        margin-top: 0.5rem;
    }

    .cart-item-remove {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .faq-step .buttons {
        flex-direction: column;
    }

    .faq-step .button {
        width: 100%;
    }
}
/* New styles for .lawMatrixNode and its children */

/* Wrapper for content, providing general padding */
.lawMatrixNode {
    padding-top: 3rem; /* Top padding for the content area */
    padding-left: 1.5rem; /* Left padding for the content area */
    padding-right: 1.5rem; /* Right padding for the content area */
    margin-left: auto; /* Center the block if it has a max-width */
    margin-right: auto; /* Center the block if it has a max-width */
    max-width: 1200px; /* Optional: Constrain content width for readability */
}

/* Heading 1 styles within .lawMatrixNode */
.lawMatrixNode h1 {
    font-size: 2.2rem; /* Moderate font size for main headings */
    line-height: 1.2; /* Good readability for headings */
    margin-top: 2.5rem; /* Space above the heading */
    margin-bottom: 1.5rem; /* Space below the heading */
}

/* Heading 2 styles within .lawMatrixNode */
.lawMatrixNode h2 {
    font-size: 1.8rem; /* Slightly smaller than h1 */
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
}

/* Heading 3 styles within .lawMatrixNode */
.lawMatrixNode h3 {
    font-size: 1.5rem; /* Further reduction in size */
    line-height: 1.4;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
}

/* Heading 4 styles within .lawMatrixNode */
.lawMatrixNode h4 {
    font-size: 1.2rem; /* Smaller heading for sub-sections */
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Heading 5 styles within .lawMatrixNode */
.lawMatrixNode h5 {
    font-size: 1.1rem; /* Smallest heading, close to body text */
    line-height: 1.6;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

/* Paragraph styles within .lawMatrixNode */
.lawMatrixNode p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.7; /* Optimal line height for readability */
    margin-bottom: 1rem; /* Space between paragraphs */
}

/* Unordered list styles within .lawMatrixNode */
.lawMatrixNode ul {
    list-style-type: disc; /* Default bullet style */
    margin-left: 1.5rem; /* Indent list items */
    margin-bottom: 1rem; /* Space after the list */
    padding-left: 0.5rem; /* Padding for bullet points */
}

/* List item styles within .lawMatrixNode */
.lawMatrixNode li {
    font-size: 1rem; /* Consistent font size with paragraphs */
    line-height: 1.7; /* Consistent line height with paragraphs */
    margin-bottom: 0.5rem; /* Space between list items */
}

/* Adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .lawMatrixNode {
        padding-top: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .lawMatrixNode h1 {
        font-size: 1.8rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .lawMatrixNode h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .lawMatrixNode h3 {
        font-size: 1.3rem;
        margin-top: 1.2rem;
        margin-bottom: 0.7rem;
    }

    .lawMatrixNode h4 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.6rem;
    }

    .lawMatrixNode h5 {
        font-size: 1rem;
        margin-top: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .lawMatrixNode p,
    .lawMatrixNode li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .lawMatrixNode ul {
        margin-left: 1rem;
    }
}

@media screen and (min-width: 769px), print {
    .column.is-half, .column.is-half-tablet {
        flex: none;
        width: 50%;
    }
}
@media screen and (min-width: 1199px) {
    .column.is-one-quarter-desktop {
        flex: none;
        width: 25%;
    }
}