.share-section {
    display: none;
}

body {
    font-family: sans-serif;
    background-color: #F8F8F8;
    color: #333333;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #407D44;
    color: white;
}

.header {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

main {
    margin: 30;
}


.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container a {
    text-decoration: none;
    color: inherit;
}

.tagline {
    margin-top: 0;
    font-size: 32px;
    font-weight: bold;
}

.content-wrapper {
    display: flex;
    gap: 80px;

    max-width: 900px;
    /* Restricts the maximum width of the content */
    margin-left: auto;
    /* Centers the container on the page */
    margin-right: auto;
    padding: 0 1.5rem;

}

.main-content {
    flex: 2;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.sidebar {
    flex: 1;
    padding-left: 40px;
    border-left: 1px solid #E0E0E0;
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recipe-title-section p {
    font-style: italic;
    font-size: 14px;
}

.recipe-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.food-title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
}

.timer-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    /* Add the gradient to the background-image property */
    background-image: linear-gradient(to bottom, transparent, white), var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* This is a placeholder, as you're setting it inline in HTML */
    --background-image: initial;
}

.timer-display {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 96px;
    font-weight: bold;
    margin-bottom: 20px;
}

.timer-controls {
    margin-bottom: 1rem;
}

.sidebar-heading {
    font-size: 24px;
}

.tip-section.mobile-tip {
    display: block;
}

.sidebar>div {
    padding-bottom: 1rem;
}

.sidebar p {
    font-size: 14px;
}

.method-link {
    text-decoration: none;
    color: #407D44;
    font-weight: normal;
    /* Normal font weight by default */
    display: block;
    padding: 8px 0;
}

.method-link:hover {
    color: #407D44;
    font-weight: bold;
    text-decoration: underline;
}

.food-list-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.food-link {
    text-decoration: none;
    color: #407D44;
    font-weight: normal;
    /* Normal font weight by default */
    padding: 8px 0;
}

.food-link:hover {
    color: #407D44;
    font-weight: bold;
    text-decoration: underline;
}

.popular-link {
    background-color: #529B56;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.popular-link:hover {
    background-color: #407D44;
}

.other-methods .link-list {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;

}

.other-methods .link-list a {
    display: inline-block;
    margin-right: 5px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary {
    background-color: #529B56;
    /* Primary Green */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #407D44;
}

.btn-secondary {
    background-color: #343232;
    border: 1px solid #333333;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000000;
}

.btn-tertiary {
    background-color: #F7B801;
    color: #333333;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}

.btn-tertiary:hover {
    background-color: #E6A700;
}

.breadcrumbs {
    /* Use a fixed font size to prevent wrapping */
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #666;
    white-space: nowrap;
    text-align: left;

    padding-left: 2rem;
    padding-right: 2rem;

}

.breadcrumbs a {
    text-decoration: none;
    color: #529B56;
    /* Primary color for the link text */
    font-weight: bold;
}

.breadcrumbs a:hover {
    color: #407D44;
    /* Primary hover color */
    text-decoration: underline;
}

.breadcrumbs span {
    color: #999;
}

main.pillar-page .main-content {
    text-align: left;
    font-size: 14px;
}

main.pillar-page .content-wrapper {
    grid-template-columns: 250px 1fr;
}

main.pillar-page .sidebar {
    flex: 3;
}

.food-image {
    max-width: 250px;
    height: auto;
    float: left;
    /* This is what makes the text wrap around the image */
    margin: 0 20px 20px 0;
}


.page-container {
    max-width: 1000px;
    margin: 0 auto;
}


/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    /* Makes the hero section fill the entire screen height */
    width: 100%;
    /* Ensures it takes up full width of its parent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    /* Sets the text color to white for contrast */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero-bg.webp');
    /* Adds a dark overlay on the background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Adds a subtle shadow for readability */
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-search {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
}

.header-search {
    display: flex;
    gap: 0.5rem;
}

.header-search input {
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
}

.header-search button {
    background-color: #529B56;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}


.search-bar .ais-SearchBox-input {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-bar form input:focus-visible {
    outline: none;
}

#hits {
    max-width: 600px;
    max-height: 400px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

#hits .hit-text-container {
    margin: 1rem 0;
    padding: 1rem 0;
}

.hit-separator {
    width: 20%;
    height: 1px;
    background-color: #407D44;
    margin: 0 auto;
}

.ais-Hits-item a {
    text-decoration: none;
    text-align: left;
    color: inherit;
    display: block;
    width: 100%;
}

/* Add the hover effect to the link itself */
.ais-Hits-item a:hover {
    background-color: #407D44;
}


.ais-Hits-item:last-of-type .hit-separator {
    display: none;
}

.hit-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #407D44;
    /* Correct green color */
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.ais-Hits-item a:hover .hit-title {
    color: #fff;
}


.hit-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    /* Correct dark color */
    margin: 0;
    padding: 0 1rem;
    font-style: italic;
    font-size: 14px;
}

.ais-Hits-item a:hover .hit-description {
    color: #fff;
}

/* Remove default link underline and color */
.hit-title em,
.hit-description em {
    font-style: normal;
    background-color: #ffd700;
    padding: 0 2px;
}

.ais-SearchBox {
    display: flex;
    gap: 1rem;
}

.ais-SearchBox-form {
    flex-grow: 1;
}

.ais-SearchBox-submit {
    display: none;
}

.ais-SearchBox-submit:hover {
    background-color: #55771A;
    /* A slightly darker green for hover effect */
}

/* Hide the reset button that Algolia adds by default */
.ais-SearchBox-reset {
    display: none;
}





.instructions-container {
    background-color: #f7f7f7;
    padding: 2rem;
    margin-top: 2rem;
}

.instructions-container h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #407D44;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #529B56;
    padding-bottom: 0.5rem;
}

.instruction-list {
    list-style-type: none;
    /* Removes default numbering */
    counter-reset: my-awesome-counter;
    padding: 0;
    margin: 0;
}

.instruction-step {
    counter-increment: my-awesome-counter;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.instruction-step::before {
    content: counter(my-awesome-counter);
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(191, 166, 166);
    background-color: #529B56;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    margin-right: 1rem;
}

.step-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #407D44;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding-left: 3rem;
}

.food-image {
    float: left;
    border-radius: 10px;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 40%;
    height: auto;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .tip-section.mobile-tip {
        display: none;
    }

    main {
        width: 100%;
    }

    main.pillar-page .content-wrapper {
        display: grid;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .breadcrumbs {
        margin-bottom: 20px;
        /* Reduces space below breadcrumbs */
        text-align: center;
        /* Aligns breadcrumbs to the left */
    }

    header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-search {
        display: none;
    }

    .hero-search {
        flex-direction: column;
        max-width: 80%;
    }

    .popular-timers .timer-list {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 15px;
    }

    .popular-timers .popular-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        white-space: nowrap;
    }

    main.food-page .content-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    main.food-page .sidebar {
        border-left: none;
        margin-top: 20px;
        text-align: center;
    }

    main.pillar-page .content-wrapper {
        grid-template-columns: 1fr;
        width: auto;
    }

    main.pillar-page .methods-list-column {
        order: 1;
        width: 100%;
    }

    .image-text-wrapper {
        margin: 0;
        text-align: 2;
    }

    .food-image {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .hero-section {
        min-height: 70vh;
        /* Shorter on mobile to prevent pushing content too far down */
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .search-bar {
        flex-direction: column;
        width: 100%;
    }

    .food-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}