/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
.page {
    background-color: #f2e3c7;
}

.layout {
    background-color: #f2e3c7;
    max-width: 68.75rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.nav-bar {
    background-color: #f2e3c7;
}

.h0 {
    @apply font-primary text-3xl font-bold md:text-5xl;
}

h1,
.h1 {
    @apply font-primary text-2xl font-bold md:text-4xl;
}

h2,
.h2 {
    @apply font-primary text-xl font-bold md:text-3xl;
}

h3,
.h3 {
    @apply font-primary text-lg font-bold md:text-2xl;
}

h4,
.h4 {
    @apply font-primary text-base font-bold md:text-lg;
}

body,
.p {
    @apply font-primary text-sm md:text-base;
}

/* Card container that spans the width of the page */
.card {
    width: 100%;
    padding: 20px 0; /* Padding for spacing */
    box-sizing: border-box;

}

/* Inner content with max-width */
.card-content {
    max-width: 1100px;
    margin: 0 auto; /* Center align the content */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}

/* Image container using flexbox for side-by-side layout */
.image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Small gap between images */
}

/* Style all images to have the same size */
.card-image {
    width: 100%;
    max-width: 30%; /* Make images take up 30% of the container */
    height: auto;
    object-fit: cover; /* Ensures images fill the area without distortion */
    border-radius: 8px;
}

/* On smaller screens (mobile) only show the first image */
@media (max-width: 768px) {
    .image-container {
        flex-direction: column; /* Stack images vertically on mobile */
    }

    .card-image:nth-child(n+2) {
        display: none; /* Hide the second and third images */
    }

    .card-image {
        max-width: 100%; /* Ensure the first image takes up full width */
    }
}

/* Style for alternating background colors */
.section:nth-child(odd) .card {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0.1, 0.1, 0, 0.1);
}

.section:nth-child(even) .card {

}

/* Additional styles to ensure proper spacing and layout */
h2 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif; /* Heading font */
    font-weight: 700; /* Bold headings */
    font-size: 4rem;
}

p {
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif; /* Body font */
}

/* Additional styles to enhance visual appeal */
a {
    font-family: 'Montserrat', sans-serif; /* Link font */
}

button {
    font-family: 'Montserrat', sans-serif; /* Button font */
}