/* Custom styles on top of Tailwind CSS */

@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

.food-image {
    transition: transform 0.3s ease-in-out;
}

.food-image:hover {
    transform: scale(1.05);
}

.category-link {
    transition: color 0.3s ease-in-out;
}

.category-link:hover {
    color: #FF9900;
}

/* Replace green with orange */
.bg-green-500 {
    background-color: #FF9900;
}

.hover\:bg-green-600:hover {
    background-color: #E68A00;
}

.text-green-500 {
    color: #FF9900;
}

.hover\:text-green-500:hover {
    color: #FF9900;
}

/* Styles for hero container and logo */
.hero-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 0;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    border-radius: 50%;
}

.featured-images-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300%;
    overflow: hidden;
}

.hero-search-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-search-input {
    font-size: 1.25rem;
    padding: 1rem;
    border: 2px solid #FF9900;
    border-right: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.hero-search-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background-color: #FF9900;
    color: white;
    border: 2px solid #FF9900;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: background-color 0.3s ease;
}

.hero-search-button:hover {
    background-color: #E68A00;
}

/* Styles for nav search */
.nav-search-input {
    font-size: 0.875rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.nav-search-button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: #FF9900;
    color: white;
    border: 1px solid #FF9900;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-search-button:hover {
    background-color: #E68A00;
}

/* Update container width for nav, main, and footer sections */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Enhancing WordPress-specific classes */

.wp-block-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.wp-block-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
}

.alignright {
    float: right;
    margin: 10px;
    max-width: 50%;
}

.prose {
    line-height: 1.6;
    font-size: 16px;
    color: #555;
}

.prose h2 {
    font-size: 28px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
}

.prose h3 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.prose ul, .prose ol {
    margin: 16px 0;
    padding-left: 20px;
}

.prose li {
    margin-bottom: 8px;
}

.prose p {
    margin-bottom: 16px;
}

/* Adding some consistent spacing and layout enhancements */
img {
    display: block;
    border-radius: 8px;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.15);
}

/* Custom styles for list items with food-related bullet points */
.prose ul {
    list-style: none;
    padding-left: 20px;
}

.prose ul li {
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
    padding-left: 1.5em;
}

.prose ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.25em;
}

/* Custom styles for ordered list items with regular numbers */
.prose ol {
    list-style: none;
    padding-left: 20px;
    counter-reset: list-counter;
}

.prose ol li {
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
    padding-left: 2em;
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Ensure full width for specific elements */
nav, main, footer {
    width: 100%;
}

/* Default padding for all pages */
main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Grid layout for posts */
.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive adjustments for post grid */
@media (min-width: 640px) {
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Remove max-width restriction for post content */
.post-content {
    width: 100%;
}

/* Consistent widths for larger screens */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    .posts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure images don't overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Updated styles for post cards and "Read More" button */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
}

.post-card-content h2 {
    margin-bottom: 0.5rem;
}

.post-card-excerpt {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more-button {
    background-color: #FF9900;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-more-button:hover {
    background-color: #E68A00;
}

/* Styles for featured images collage */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 10s linear;
}

@media (min-width: 1440px) {
    .collage-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1920px) {
    .collage-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.collage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(198, 70, 0, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: none;
}

/* Remove padding for homepage */
.homepage main {
    padding-top: 0;
}

.homepage .hero-container {
    margin-top: 0;
}

/* Styles for 'Our Story' section image */
.our-story-image {
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (min-width: 1024px) {
    .our-story-text {
        flex: 1;
    }

    .our-story-image {
        height: auto;
    }
    
    .our-story-image-container {
        flex: 0 0 50%;
    }

    .our-story-container {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .our-story-image {
        max-width: 800px;
    }
}