/* :root {
    --blue: #1C2C4C;
    --yellow: #FFD700;
    --ivory-white: #FFFFFF;
    --beige: #F5F5F5;
    --spice-orange: #FF914D;
    --mint-green: #CDE8D6;
} */
:root {
    --deep-blue: #1C2C4C;
    --gold: #FFD700;
    --spice-orange: #FF914D;
    --spice-orange-dark: #E67A33;
    --warm-sand: #E8DCC2;
    --white: #FFFFFF;
    --saffron-red: #8b1e24;
    --light-beige: #FFFCF7;
    --soft-beige:#fff8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    background-color: var(--light-beige);
}

h1 {
    font-family: 'Montserrat';
}

h2,
h3,
h4,
nav a {
    font-family: 'Montserrat', sans-serif;
}

/* Wrapper Grid */
#wrapper {
    display: grid;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
    /* grid-template-rows: 150px 70px minmax(650px, auto) minmax(150px, auto); */
    grid-template-rows: 150px 70px minmax(650px, auto) auto;
    grid-template-columns: 1fr;
    background-color: var(--light-beige);
}

/* header section */
header {
    grid-area: header;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-areas:
        "logo companyname header-icons"
        "logo companyname searchbar";
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 75px 75px;
    /* background-color: var(--mint-green); */
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    align-items: center;
    color: var(--deep-blue);
}

#logo {
    grid-area: logo;
    display: flex;
    width: 120px;
    height: 120px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 4.5rem;
    margin-left: 1rem;
}

#logo img {
    border: px solid var(--spice-orange);
    max-height: 100%;
    border-radius: 8px;
    display: block;
}

#companyname {
    grid-area: companyname;
    text-align: center;
}

#companyname h1 {
    font-size: 3rem;
    color: var(--deep-blue);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
    letter-spacing: 1px;
}

#companyname p {
    margin: 0;
    font-style: italic;
    font-weight: bold;
    opacity: 0.8;
    font-size: 1rem;
    color: var(--deep-blue);
    font-weight: bold;
}

/* header social media icons */
/* #header-icons {
    grid-area: header-icons;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
} */
#header-icons {
    grid-area: header-icons;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
}
#header-icons a {
    padding: 0.60rem;
}

#header-icons i {
    font-size: 2rem;
    color: var(--deep-blue);
    transition: color 0.25s ease, transform 0.25s ease;
    
}

#header-icons a:hover i {
    color: var(--saffron-red);
    transform: translateY(-3px);
}

/* header searchbar section */
#searchbar {
    grid-area: searchbar;
    display: flex;
    width: 100%;
    margin: 0;
}

#searchbar input {
    flex: 1;
    padding: 0.9rem 0.9rem;
    font-size: 1rem;
    border: 1px solid var(--spice-orange);
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-sizing: border-box;
    outline: none;
    height: 45px;
}

#searchbar .search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem ;
    font-size: 1rem;
    border: 1px solid var(--spice-orange);
    border-left: none;
    border-radius: 0 8px 8px 0;
    height: 45px;
    margin-top: 0;
    background-color: var(--deep-blue);
    color: var(--warm-sand);
    cursor: pointer;
    margin-right: 5%;
}

#searchbar button:hover {
    background-color: var(--saffron-red);
}

#searchbar .search-btn i {
    font-size: 1.1rem;
}

/* navbar starts */
nav {
    grid-area: nav;
    width: 100%;
    height: 70px;
    background-color: var(--deep-blue);
    color: var(--white);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav ul li a {
    display: block;
    text-align: center;
    color: var(--ivory-white);
    padding: 24px 60px;
    text-decoration: none;
    justify-content: space-around;
    font-size: 1.25rem;
    font-weight: bold;
}

nav a:hover {
    display: block;
    background-color: var(--gold);
    color: var(--deep-blue);
}

/* navbar ends */
/* Error 404 page */
#error404-page h2 {
    color: var(--saffron-red);
    text-align: center;
    margin: 2rem;
}
/* HOME PAGE MAIN SECTION */

section.hero-rotate {
    background-image: url("../images/hero1.jpg");
    padding: 5rem 2rem;
    position: relative;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    text-align: center;
    color: var(--white);

}

section.hero-rotate h2,
section.hero-rotate p,
section.hero-rotate a {
    position: relative;
    z-index: 2;
}

section.hero-rotate h2 {
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;

}

/* Rotating Taglines */
section.hero-rotate p.tagline {
    font-size: 1.3rem;
    height: 2rem;
    margin-bottom: 2rem;
    animation: fadeRotate 12s infinite;
    opacity: 0;
}

/* Keyframes for rotation tagline*/
@keyframes fadeRotate {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Explore recipe button */
section.hero-rotate a {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--spice-orange);

    color: var(--deep-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.05em;
    transition: background 0.25s ease;
}

section.hero-rotate a:hover {
    background: var(--saffron-red);
    color: var(--white);

}

/* home intro section */
section.home-intro {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--warm-sand);
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--saffron-red);
    border-right: 4px solid var(--saffron-red);
}

section.home-intro h2 {
    font-size: 2rem;
    color: var(--saffron-red);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

section.home-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--deep-blue);
    max-width: 900px;
    margin: 0 auto 1.8rem;
}

/* Read story button */
section.home-intro a {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--spice-orange);
    color: var(--deep-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.05em;
    transition: background 0.25s ease;
}

section.home-intro a:hover {
    background: var(--saffron-red);
    color: var(--white);
}

/* Treding now section */
section.trending-now {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem 4rem;
    border-radius: 10px;
    background: linear-gradient(to bottom right,
            #FFF9EC,
            #FFE7C2);
    border: 1px solid #F5D9A6;

}

section.trending-now h2 {
    font-size: 2rem;
    color: var(--saffron-red);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

section.trending-now p.tagline {
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin-bottom: 2.5rem;
}

section.trending-now ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    
}

section.trending-now li {
    background: var(--white);
    border: 1px solid var(--spice-orange);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section.trending-now li:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

section.trending-now img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

section.trending-now a.recipe-title {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--deep-blue);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    
}

/* veiw all button */
section.trending-now a.view-all {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--spice-orange);
    color: var(--deep-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.05em;
    transition: background 0.25s ease;
    
}

section.trending-now a.view-all:hover {
    background: var(--saffron-red);
    color: var(--white);
}

/* cooking-wisdom section */
.cooking-wisdom {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1.2rem 1.6rem;

    background: #fff7ec;
    border-radius: 10px;
    border-left: 4px solid var(--saffron-red);
    border-right: 4px solid var(--saffron-red);
    text-align: center;
    font-style: italic;
    color: var(--deep-blue);
    font-size: 1.1rem;
    /* font-weight: 500; */
    letter-spacing: 0.3px;

}
.cooking-wisdom h3 {
    font-size: 1.2rem;
    color: var(--saffron-red);
}

/* top rated section */
.top-rated {
    max-width: 1200px;
        margin: 3rem auto;
        padding: 3rem 4rem;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--warm-sand);
    transition: background 0.25s ease, transform 0.25s ease;
    border-radius: 10px;
}
.top-rated h2 {
    font-size: 2.2rem;
    color: var(--saffron-red);
}
.top-rated .tagline {
    margin: 1rem auto 2.5rem;
    color: var(--deep-blue);
    opacity: 0.85;
    font-size: 1.1rem;
}
.top-rated ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
        
}
.top-rated li {
    background: var(--light-beige);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(28, 44, 76, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease both;
}
.top-rated li>a {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.top-rated li:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 32px rgba(255, 145, 77, 0.28);
}

.top-rated figure {
    margin: 0;
}

.top-rated img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.top-rated li:hover img {
    transform: scale(1.08);

}
.top-rated figcaption {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-blue);
}

.view-all-top-rated {
    display: inline-block;
        padding: 0.8rem 2rem;
        background: var(--spice-orange);
        color: var(--deep-blue);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 999px;
        letter-spacing: 0.05em;
        transition: background 0.25s ease;
}
.view-all-top-rated:hover {
    background: var(--saffron-red);
    color: var(--white);}


/*  Recipe Search Section */
section.recipe-search {
    max-width: 1200px;
    margin: 3rem auto;
    text-align: center;
}

section.recipe-search h2 {
    font-size: 2rem;
    color: var(--saffron-red);
    margin-bottom: 0.5rem;
}

section.recipe-search .tagline {
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
}

/* Search Bar Wrapper */
section.recipe-search .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Spice Icon */
section.recipe-search .spice-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    color: var(--spice-orange-dark);
    pointer-events: none;
    z-index: 3;
}

/* Input */
section.recipe-search input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    /* space for icon */
    border: 1px solid var(--spice-orange);
    border-radius: 999px 0 0 999px;
    font-size: 1rem;
    color: var(--deep-blue);
    outline: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    background: var(--white);
}

/* Saffron Glow on Focus */
section.recipe-search input:focus {
    border-color: var(--saffron-red);
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.4);
}

/* Search Button */
section.recipe-search button {
    padding: 0.9rem 1.6rem;
    background: var(--spice-orange);
    color: var(--deep-blue);
    border: none;
    border-radius: 0 999px 999px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

section.recipe-search button:hover {
    background: var(--saffron-red);
    color: var(--white);
}

/* BACK TO TOP BUTTON */
a.back-to-top {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--saffron-red);
    color: var(--saffron-red);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font);
    text-decoration: none;
    text-align: center;
    position: relative;
    left: 50%;
    margin: 3rem 0 2rem;
}

/* SAFFRON HOVER GLOW */
a.back-to-top:hover {
    background: var(--saffron-red);
    color: var(--white);
    box-shadow: 0 0 14px rgba(255, 153, 51, 0.55);
    transform: translateY(-3px);
}


/* RECIPES PAGE MAIN SECTION STARTS*/
/* Recipe-page section */
.recipe-page {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: var(--light-beige);
    border: 1px solid var(--warm-sand);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(28, 44, 76, 0.08);
    color: var(--deep-blue);
}

.search-block label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--saffron-red);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.recipe-page h2 {
    font-size: 2.2rem;
    color: var(--saffron-red);
    letter-spacing: 0.06rem;
    margin-bottom: 1rem;

}

.recipe-page p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--deep-blue);

    margin-bottom: 1.5rem;
}

.search-block .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--warm-sand), var(--spice-orange));
    color: var(--deep-blue);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(255, 145, 77, 0.35);
    position: relative;
    margin-bottom: 3%;
}

.recipe-page .tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--saffron-red);
    box-shadow: 0 0 0 6px rgba(139, 30, 36, 0.18);
}

.recipe-page .tag:focus-visible {
    outline: 2px solid #c45b2e;
    outline-offset: 3px;
}

/* search block section */
.search-block {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--light-beige);
    border: 1px solid var(--warm-sand);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(28, 44, 76, 0.08);
}

.search-block label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--saffron-red);
    font-size: 1.2rem;
}

.search-wrap {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.search-wrap input[type="search"] {
    flex: 1;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--warm-sand);
    font-size: 1rem;
    color: var(--deep-blue);
    background: var(--white);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease;
}

.search-wrap input[type="search"]:hover {
    border-color: var(--spice-orange);
    background: var(--light-beige);
}

.search-wrap input[type="search"]:focus {
    border-color: var(--spice-orange-dark);
    box-shadow: 0 0 0 4px rgba(255, 145, 77, 0.25);
    background: var(--light-beige);
}

.search-wrap .btn-submit {
    padding: 1rem 1.8rem;
    border-radius: 14px;
    border: none;
    background: var(--spice-orange);
    color: var(--deep-blue);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition:
        background 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.25s ease;
}

.search-wrap .btn-submit:hover {
    background: var(--saffron-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 145, 77, 0.35);
}

.search-wrap .btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.search-block .celebrate {
    display: inline-block;
    margin-top: 1rem;
    color: var(--saffron-red);
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.search-block .celebrate:hover {
    color: var(--spice-orange-dark);

    text-decoration: underline;
    text-decoration-color: var(--spice-orange-dark);
}

/* course heading section */

[aria-labelledby="course-heading"] {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background: var(--light-beige);
    border: 1px solid var(--warm-sand);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(28, 44, 76, 0.08);
}

#course-heading {
    font-size: 2.2rem;
    color: var(--saffron-red);
    margin-bottom: 0.5rem;
}

.sub {
    font-size: 1.05rem;
    color: var(--deep-blue);
    margin-bottom: 2.5rem;
}

.grid-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    padding: 0;
    list-style: none;
}

.circle-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.circle-card:hover {
    transform: translateY(-6px);
}

.circle-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--warm-sand);
    box-shadow: 0 8px 20px rgba(28, 44, 76, 0.15);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.circle-card:hover .circle-img {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(255, 145, 77, 0.35);
    border-color: var(--spice-orange);
}

.circle-card .title {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-blue);
    transition: color 0.25s ease;
}

.circle-card:hover .title {
    color: var(--spice-orange-dark);
}

/* featured-recipe-day section  */
.featured-recipe-day {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--light-beige);
    border: 1px solid var(--warm-sand);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(28, 44, 76, 0.08);
}

.featured-recipe-day h2 {
    margin-bottom: 1.5rem;
    color: var(--saffron-red);
    font-size: 2rem;
}

.featured-recipe-day article {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--warm-sand);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-recipe-day article:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(255, 145, 77, 0.35);
    border-color: var(--spice-orange);
}

.featured-recipe-day figure img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.frd-content h3 {
    margin: 0 0 0.5rem;
    color: var(--deep-blue);
    font-weight: 600;
}

.frd-content p {
    margin: 0 0 0.8rem;
    color: var(--deep-blue);
}

.featured-recipe-day .view-btn {
    transition: color 0.25s ease, padding-left 0.25s ease;
    color: var(--spice-orange-dark);
    font-weight: 600;
}

.featured-recipe-day article:hover .view-btn {
    color: var(--saffron-red);
    padding-left: 4px;
}

/* ingredient spotlight section */

.ingredient-spotlight {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background:var(--soft-beige);
    border-radius: 16px;
}
.ingredient-spotlight h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--saffron-red);
}

.ingredient-spotlight p {
    color: var(--deep-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}
.ingredient-spotlight article {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid var(--warm-sand);
    border-radius: 14px;
    background: var(--white);
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ingredient-spotlight article:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(255, 145, 77, 0.35);
    border-color: var(--warm-sand);
}

.ingredient-spotlight figure img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.spotlight-content p {
    margin: 0.3rem 0;
    color: var(--deep-blue);
}

.ingredient-spotlight .view-btn {
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
    color: var(--spice-orange-dark);
    font-weight: 600;
}

.ingredient-spotlight article:hover .view-btn {
    color: var(--saffron-red);
    padding-left: 4px;
}



/*  GALLERY PAGE MAIN SECTION STARTS */
/* image slider with keyframe */
#slider {
    overflow: hidden;
}

#slider figure {
    position: relative;
    width: 500%;
   
    margin: 0;
    left: 0;
    animation: 20s slider infinite;
}

#slider figure img {
    float: left;
    width: 20%;

}

@keyframes slider {
    0% {
        left: 0;
    }

    20% {
        left: 0;
    }

    25% {
        left: -100%;
    }

    45% {
        left: -100%;
    }

    50% {
        left: -200%;
    }

    70% {
        left: -200%;
    }

    75% {
        left: -300%;
    }

    95% {
        left: -300%;
    }

    100% {
        left: -400%;
    }
}

/* feature recipe section */
.feature-recipe h2 {
    font-size: 2.2rem;
    color: var(--saffron-red);
    text-align: center;
    margin-bottom: 1%;
}

.feature-recipe p {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--deep-blue);
    font-weight: bold;
}

/* most loved expanded section style */
section.most-loved-expanded {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
    display: grid;
    gap: 1.5rem;
    color: var(--deep-blue);
    grid-template-columns: repeat(4, 1fr);
}

section.most-loved-expanded article {
    background: var(--white);
    border: 1px solid var(--spice-orange);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

section.most-loved-expanded article:hover {
    transform: translateY(-5px);
}

section.most-loved-expanded figure img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--spice-orange-dark);
}

section.most-loved-expanded h3 {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.1rem;
    color: var(--saffron-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

section.most-loved-expanded a {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.5rem 1rem;
    background: var(--spice-orange);
    color: var(--deep-blue);
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

section.most-loved-expanded a:hover {
    background: var(--saffron-red);
    color: var(--white);
}

/* feature recipe section */
#gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-recipe {
    padding: 2rem 0;
}
.feature-recipe h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: var(--deep-blue);
}

#gallery-grid figure {
    text-align: center;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--saffron-red);
}

#gallery-grid figcaption {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: var(--deep-blue);
    font-weight: bold;
    transition: color 0.3s ease;
}

#gallery-grid figure:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#gallery-grid figure:hover figcaption {
    color: var(--saffron-red);

}



/* About page main section starts */

.about-saffron {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--light-beige);
    border-radius: 16px;
    border: 1px solid var(--warm-sand);
}

.about-saffron h2 {
    font-size: 1.6rem;
    color: var(--saffron-red);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-saffron p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--deep-blue);
    margin-bottom: 14px;
}

.about-more {
    margin-top: 6px;
}

.about-more summary {
    list-style: none;
    cursor: pointer;
}

.about-more summary::-webkit-details-marker {
    display: none;
}

/* Read more link styling */
.about-toggle {
    display: inline-block;
    font-size: 1rem;
    color: var(--spice-orange-dark);
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    transition: color 0.3s ease;
}

.about-toggle:hover {
    color: var(--saffron-red);

}

/* Arrow indicator */
.about-toggle::after {
    content: " ↓";
    font-size: 0.85rem;
}

.about-more[open] .about-toggle::after {
    content: " ↑";
}


.about-saffron {
    background: var(--light-beige);
    border-radius: 10px;
    border: 1px solid var(--warm-sand);
    border-left: 4px solid var(--saffron-red);
    border-right: 4px solid var(--saffron-red);
    padding-left: 28px;

}

.my-story {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    padding: 1.8rem 1.4rem;
    border-radius: 10px;
    border: 1px solid var(--warm-sand);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--saffron-red);
    border-right: 4px solid var(--saffron-red);
}

.story {
    border: 1px solid var(--warm-sand);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    background: var(--light-beige);
    margin-bottom: 1.2rem;

}

.story-head {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--saffron-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

summary::marker {
    color: var(--spice-orange-dark);
}

.story p {
    color: var(--deep-blue);
    font-size: 1.4rem;
    margin-top: .75rem;
    line-height: 1.5;
    max-width: 80ch;


}

.story section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
}

/* Text area */
.story-detail {
    flex: 1;
}

.story figure {
    max-width: 300px;
    margin: 0;
}

.story figure img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--warm-sand);
}

.story-detail ul {
    list-style: none;
    margin-top: 0.5rem;

}

.story-detail ul li {

    margin-bottom: 1.2rem;
    padding-left: 1rem;
    color: var(--deep-blue);
    position: relative;
    opacity: 0.95;
}

.story-detail ul li::before {
    content: "🔥";
    font-size: 1rem;
    margin-right: 4px;

}

.cta a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.4rem;
    background: var(--spice-orange);
    color: var(--deep-blue);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.cta a:hover {
    background: var(--saffron-red);
    color: var(--white);
}


/* CONTACT PAGE MAIN SECTION STARTS */
#contactpage {
    max-width: 1200px;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "article aside";
    gap: 32px;
    margin: 3rem auto;
    padding: 2rem;
    width: 100%;
}



#connected {
    display: grid;
    grid-area: article;
    border: 1px solid var(--saffron-red);
    background-color: var(--ivory-white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--deep-blue);
}

#connected h2 {
    color: var(--saffron-red);
    font-weight: bold;
    margin-bottom: 1%;
    font-size: 2rem;
}

.contact-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 16px;
    border: 3px solid var(--saffron-red);
}

#connected .intro-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
    max-width: 70ch;
    color: var(--deep-blue);
}

#connected h3 {
    margin: 16px 0 8px;
    font-size: 1.2rem;
    color: var(--saffron-red);
    text-align: left;
    font-weight: bold;
}

/* list styling */
#connected ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

#connected ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    text-align: left;
    font-size: 1rem;
    color: var(--deep-blue);
}

#connected li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--saffron-red);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 12px;
}

/* contact aside form */

#contact-details {
    grid-area: aside;
    border: 1px solid var(--deep-blue);
    border-radius: 8px;
    margin: 0 auto;
    padding: 1rem;

    border-radius: 8px;
    color: var(--deep-blue);
}

aside p {
    font-size: 1rem;
    margin: 0 0 1% 3%;
    max-width: 70ch;
}

#contact-details h3 {
    color: var(--saffron-red);
    margin: 3% 0 1% 0;
    font-size: 30px;
}

#theForm {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}

span {
    clear: both;
    position: relative;
    display: inline-block;
    width: 100%;
    padding-top: 10px;
}

span input,
textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--deep-blue);
    padding: 10px;
    font-size: 1rem;
    box-shadow: 1px 1px 1px var(--spice-orange);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

span label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    width: 100%;
    position: relative;
    font-size: 1.2rem;
    color: var(--deep-blue);
}

span label:after {
    content: " *";
    color: red;
}

input.parentNode {
    position: relative;
}

#submit {
    clear: both;
    width: 100%;
    height: 40px;
    background-color: var(--spice-orange);
    color: var(--deep-blue);
    text-align: center;
    line-height: 20px;
    font-size: 1rem;
    margin-top: 2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
}

#submit:hover {
    background: var(--saffron-red);
    color: var(--light-beige);
}

.tooltip-container {
    width: 80%;
}

.tooltip {
    display: block;
    position: absolute;
    visibility: hidden;
    left: 90%;
    top: 0;
    width: 10rem;
    padding: 0.5em;
    font-size: 10px;
    font-weight: normal;
    border-radius: 8px;
    color: var(--deep-blue);
    background-color: var(--spice-orange);
    border: solid 2px var(--deep-blue);
    white-space: nowrap;
}

label:hover .tooltip {
    visibility: visible;
}

label.error {
    color: red;
}

/* Error message under input */
span.error {
    position: absolute;
    color: #D92525;
    font-size: 12px;
    top: 18px;
    text-align: end;
}

.sucess {
    color: green;
}

span.sucess {
    padding-left: 10px;
    position: absolute;
    font-size: 1rem;
    left: 95%;
    top: 0;
}

span label.sucess:after {
    color: green;
}

#contact-details ::placeholder {
    color: #ccc;
    font-size: 0.9rem;
}

iframe {
    width: 100%;
    height: 300px;
    /* border: solid 2px var(--spice-orange); */
    border-radius: 5px;
    box-shadow: 1px 1px 1px var(--saffron-red);
}

/* ERROR 404 PAGE STARTS */
#error404-page {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
    text-align: center;
}
.pot img{
    width: 200px;
        opacity: 0.9;
        margin-bottom: 10px;
       
}
.text-404 {
    color: var(--saffron-red);
    font-size: 2.5rem;
    margin: 20px 0 30px;
    
    
}
#error404-page p {
    color: var(--deep-blue);
    font-size: 1.6rem;    
    font-weight: 600;
    margin-bottom: 2.5rem;
    font-style: italic;
    word-spacing: 0.5rem;
}
.btn {
   
    background: var(--spice-orange-dark);
    color: var(--deep-blue);
    padding: 14px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;    
    transition: 0.3s;
}

.btn:hover {
    background:var(--saffron-red);
    color: var(--white);
}
/* Footer starts */
footer {
    grid-area: footer;
    display: grid;
    grid-template-areas:
        "links stayconnected socialmedia"
        "footer-bottom footer-bottom footer-bottom";
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    padding: 3rem 4rem;
    background-color: var(--deep-blue);
    color: var(--white);
    margin-top: 2%;
}

#links {
    grid-area: links;
}

#stayconnected {
    grid-area: stayconnected;
}

footer h2 {
    margin-bottom: 10px;
}

#stayconnected p {
    font-size: 1rem;
}

#socialmedia {
    grid-area: socialmedia;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-self: start;
    gap: 1.2rem;
}

#socialmedia a {
    color: var(--ivory-white);
   
    
}

#socialmedia a i:hover {
    color: var(--saffron-red);
}

#socialmedia a i {
    font-size: 2.2rem;
    text-align: end;
  

}

#footer-bottom {
    grid-area: footer-bottom;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#links a,
#footer-bottom a {
    display: block;
    color: var(--ivory-white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

#links a:hover,
#stayconnected a:hover,
#footer-bottom a:hover {
    color: var(--saffron-red);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signup-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.signup-form label {
    margin-top: 2%;
    font-size: 1.2rem;
}

.signup-form button {
    padding: 0.5rem 1rem;
    background-color: var(--spice-orange);
    color: var(--deep-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.signup-form button:hover {
    background-color: var(--saffron-red);
    color: var(--white);
}

#footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

#footer-bottom ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

#footer-bottom ul li a {
    font-size: 0.9rem;
}

/* FOOTER ENDS */

@media screen and (max-width: 600px) {

    /* Wrapper rows */
    #wrapper {
        grid-template-rows: 140px auto auto auto;

    }

    /* Header grid */
    header {
        grid-template-areas:
            "logo header-icons"
            "searchbar searchbar";
        grid-template-columns: 1fr auto;
        grid-template-rows: 80px 50px;
        padding: 5px 1rem;
        align-items: center;
    }

    /* Logo */
    #logo {
        width: 70px;
        height: auto;
        margin: 0;
        justify-content: flex-start;
        align-items: center;
        display: flex;
    }

    #logo img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Hide company name on mobile */
    #companyname {
        display: none;
    }

    /* Social icons */
    
    #header-icons i {
        font-size: 1.2rem;
        margin-top: 0;
    }

    /* Search bar */
    #searchbar {
        width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust input and button inside searchbar */
    #searchbar input {
        height: 40px;
        font-size: 1rem;
    }

    #searchbar .search-btn {
        height: 40px;
    }

    nav ul {
        justify-content: center;
        align-items: center;
        gap: 1%;
    }

    nav ul li a {
        font-size: 0.7rem;
        padding: 28px 14px;
        text-align: center;
        width: 100%;
    }

    /* homepage */

    section.hero-rotate {

        padding: 3rem 1.5rem;
    }

    section.hero-rotate h2 {
        font-size: 1.4rem;
    }

    section.hero-rotate p.tagline {
        font-size: 1.1rem;
        height: 1.6rem;
    }

    section.hero-rotate a {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
    }

    section.home-intro {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
        border-radius: 8px;
    }

    section.home-intro h2 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.02em;
    }

    section.home-intro p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    section.home-intro a {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    section.trending-now {
        padding: 2rem 1rem 3rem;
        margin: 2rem auto;
        border-radius: 8px;
        text-align: center;
    }

    section.trending-now h2 {
        font-size: 1.7rem;
        margin-bottom: 0.4rem;
    }

    section.trending-now p.tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Grid becomes single-column */
    section.trending-now ul {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    section.trending-now li {
        border-radius: 10px;
    }

    section.trending-now img {
        height: 180px;
        object-fit: cover;
    }

    section.trending-now a.recipe-title {
        font-size: 1rem;
        padding: 0.9rem;
    }

    section.trending-now a.view-all {
        font-size: 0.9rem;
        padding: 0.7rem 1.6rem;
    }
    /* top rated section */
        .top-rated {
            padding: 2rem 1.2rem;
            margin: 2rem auto;
            text-align: center;
           
        }
    
        .top-rated h2 {
            font-size: 1.8rem;
        }
    
        .top-rated .tagline {
            font-size: 1rem;
            margin: 0.5rem auto 2rem;
        }
    
        .top-rated ul {
            grid-template-columns: 1fr;
           
            gap: 1.5rem;
            margin-bottom: 2rem;
            
        }
    
        .top-rated img {
            height: 160px;
           
        }
    
        .view-all-top-rated {
            padding: 0.7rem 1.6rem;
            font-size: 0.95rem;
        }
        



    /* recipe page */
    .recipe-page {
        margin: 2.5rem 1.25rem;
        padding: 2rem 1.5rem;
    }

    .recipe-page h2 {
        font-size: 1.8rem;
    }

    .recipe-page p {
        font-size: 0.95rem;
    }
        #course-heading{
            font-size: 1.8rem;
        }
   

    .search-block .search-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .search-block .btn-submit {
        width: 100%;
    }

    /* Smaller grid spacing */
    .grid-circles {
        gap: 1.8rem;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    /* Smaller circles */
    .circle-img {
        width: 130px;
        height: 130px;
    }

    /* Slightly softer hover for mobile */
    .circle-card:hover .circle-img {
        transform: scale(1.05);
        box-shadow: 0 10px 22px rgba(255, 145, 77, 0.28);
    }

    .circle-card:hover {
        transform: translateY(-4px);
    }

    .circle-card .title {
        font-size: 1rem;
    }

    .featured-recipe-day h2 {
        font-size: 1.8rem;
        text-align: left;
    }

    .featured-recipe-day article {
        flex-direction: column;
        text-align: center;
    }

    .featured-recipe-day figure img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
         .ingredient-spotlight article {
             flex-direction: column;
             text-align: center;
         }
    
         .ingredient-spotlight figure img {
             width: 100%;
             max-width: 260px;
         }


    /* gallery page */
    section.most-loved-expanded {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.2rem;
    }

    section.most-loved-expanded article {
        padding: 1.2rem;
        border-radius: 10px;
    }

    section.most-loved-expanded figure img {
        height: 200px;
        object-fit: cover;
    }

    section.most-loved-expanded h3 {
        font-size: 1rem;
        margin: 0.6rem 0 0.3rem;
        letter-spacing: 0.04em;
    }

    section.most-loved-expanded a {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }

    .feature-recipe h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .feature-recipe p {
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
    }


    #gallery-grid {
        grid-template-columns: 1fr;
        margin-bottom: 1rem;
    }

    .feature-recipe h2 {
        font-size: 1.8rem;
    }

    #gallery-grid figure {
        border-radius: 10px;
    }

    #gallery-grid img {
        height: 220px;
        /* Keeps images consistent and editorial */
        object-fit: cover;
    }

    .feature-recipe h3 {
        font-size: 1.6rem;

    }

    #gallery-grid figcaption {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* about us page */
    .story section {
        flex-direction: column;
    }

    .story figure {
        max-width: 100%;
    }


    /*contactpage  */
    #contactpage {
        grid-template-columns: 1fr;
        grid-template-areas:
            "article"
            "aside";
        padding: 2rem;
        width: 100%;
    }

    .tooltip-container input {
        width: 100%;
        box-sizing: border-box;
        padding-right: 130px;
    }

    .tooltip {
        position: absolute;
        top: 10%;
        right: 25px;
        background-color: var(--mint-green);
        color: var(--deep-blue);
        padding: 5px 10px;
        font-size: 0.5rem;
        border-radius: 4px;
        border: 1px solid var(--deep-blue);
        visibility: hidden;
        white-space: nowrap;
        pointer-events: none;
        z-index: 10;
    }

    footer {
        grid-template-areas:
            "links"
            "stayconnected"
            "socialmedia"
            "footer-bottom";
        grid-template-columns: 1fr;
        text-align: center;
    }

    #links h2,
    #stayconnected h2 {
        font-size: 1.2rem;
    }

    #socialmedia a i {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    #links a,
    #stayconnected p {
        font-size: 1rem;
    }

    #footer-bottom p {
        font-size: 0.60rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    #footer-bottom ul li a {
        font-size: 0.55rem;
        margin: 0;
    }
}