/* home.css */

/* Existing .home-content styles */
.home-content {
    padding: 2rem;
    background-color: var(--clr-highlight-background);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    background-image:linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                     url('/images/default/hero_image.webp'); /* Use your image path here */
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    min-height: 400px; /* Adjust this to control the height of the hero section */

    /* Optional: Add a text shadow for better readability over the image */
    color: var(--clr-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


.home-content h2 {
    color: var(--clr-primary-accent);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.home-content p {
    color: var(--clr-white);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15rem;
}

/* Styles for content sections (recipes and blog posts) */
.content-section {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--clr-highlight-background);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 2rem auto; /* Ensures consistent margin for all sections */

    text-align: center;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--clr-primary-accent);
    font-size: 2.2rem;
    font-weight: 700;
}

/* NEW: Specific styling for the About Us snippet section */
.about-snippet-section p {
    margin-bottom: 1.5rem; /* Add more space below the paragraph before the button */
    font-size: 1.05rem; /* Slightly smaller than main welcome p, but still clear */
}
/* No specific button styles needed here, as it uses the global .btn and .btn-primary */


/* Styles for card containers */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Styles for individual recipe and blog cards */
.recipe-card, .blog-post-card {
    background-color: var(--clr-background); /* Using your general background for cards */
    border: 1px solid var(--clr-border);
    border-radius: 1rem;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover, .blog-post-card:hover {
    transform: translateY(-8px);
}

.card-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #eee; /* Placeholder, consider a variable if you have one */
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: var(--clr-main-text); /* Use main text color for card headings */
    margin-bottom: 10px;
}
/* Link within card content heading */
.blog-post-card .card-content h3 a {
    color: var(--clr-main-text); /* Ensure link color matches heading */
    /* Added from your profile.css for consistency if description is often clamped */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Default to 3 lines */
        -webkit-box-orient: vertical;
}
.blog-post-card .card-content h3 a:hover {
    color: var(--clr-primary-accent); /* Hover state for link */
    text-decoration: underline;
}


.card-meta {
    font-size: 0.85em;
    color: var(--clr-borders); /* Using your borders color for meta text */
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95em;
    color: var(--clr-main-text);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    /* Added from your profile.css for consistency if description is often clamped */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Default to 3 lines */
        -webkit-box-orient: vertical;
}

.btn {
    display: inline-block;
    align-self: flex-start;
}


/* Existing @media queries for .home-content */
@media (max-width: 768px) {
    .home-content { padding: 1.5rem; margin: 1.5rem auto; }
    .home-content h2 { font-size: 1.8rem; }
    .home-content p { font-size: 1rem; }

    /* Responsive adjustments for cards */
    .card-container { gap: 15px; }
    .recipe-card, .blog-post-card { width: calc(50% - 15px); }
}

@media (max-width: 480px) {
    .home-content { padding: 1rem; margin: 1rem auto; border-radius: 0.75rem; }
    .home-content h2 { font-size: 1.6rem; }
    .home-content p { font-size: 0.95rem; }

    /* Responsive adjustments for cards */
    .recipe-card, .blog-post-card { width: 100%; }
}