

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — Pillsbury-inspired navy + teal + gold
═══════════════════════════════════════════════════════════════ */

/* NAVY NAVBAR OVERRIDE */
.hp-navbar {
    background: var(--hp-navy, #1B3A6B) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(18,40,83,.3) !important;
}
.hp-navbar__logo {
    color: #fff !important;
}
.hp-navbar__logo i { color: var(--hp-accent, #F4A700) !important; }
.hp-navbar__logo .logo-text { color: #fff !important; }

.hp-navbar__link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 600 !important;
    transition: color .2s !important;
}
.hp-navbar__link:hover { color: var(--hp-accent, #F4A700) !important; }

.hp-navbar .nav-dropdown-trigger {
    color: rgba(255,255,255,.88) !important;
}
.hp-navbar .nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--hp-accent, #F4A700) !important;
}

.hp-navbar__search-icon {
    color: rgba(255,255,255,.8) !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.hp-navbar__search-icon:hover { color: var(--hp-accent, #F4A700) !important; }

.hp-navbar__burger { color: #fff !important; }

:root {
    --hp-navy:      #1B3A6B;
    --hp-navy-dark: #122853;
    --hp-teal:      #00909A;
    --hp-teal-dark: #007A82;
    --hp-accent:    #F4A700;
    --hp-bg-light:  #F4F7FB;
    --hp-white:     #FFFFFF;
    --hp-text:      #1C1C2E;
    --hp-text-muted:#5C6B7A;
    --hp-radius:    12px;
    --hp-radius-lg: 20px;
    --hp-shadow:    0 8px 24px rgba(27,58,107,.10);
    --hp-shadow-lg: 0 16px 48px rgba(27,58,107,.16);
}

/* SHARED */
.hp-section-header { margin-bottom: 2rem; }
.hp-section-header__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--hp-navy);
    margin-bottom: .3rem;
}
.hp-section-header__sub {
    color: var(--hp-text-muted);
    font-size: .95rem;
}
.hp-section-header--between {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.hp-link-more {
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 700;
    color: var(--hp-teal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
    white-space: nowrap;
}
.hp-link-more:hover { gap: 9px; color: var(--hp-teal-dark); }

/* Badges */
.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.hp-badge--accent { background: var(--hp-accent); color: var(--hp-navy); }
.hp-badge--white  { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.hp-badge--navy   { background: var(--hp-navy); color: #fff; }

/* Buttons */
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--hp-radius);
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s ease;
    text-decoration: none;
}
.hp-btn--primary { background: var(--hp-navy); color: #fff; }
.hp-btn--primary:hover { background: var(--hp-navy-dark); transform: translateY(-2px); box-shadow: var(--hp-shadow); color: #fff; }
.hp-btn--teal    { background: var(--hp-teal); color: #fff; }
.hp-btn--teal:hover { background: var(--hp-teal-dark); transform: translateY(-2px); color: #fff; }
.hp-btn--white   { background: #fff; color: var(--hp-navy); }
.hp-btn--white:hover { background: var(--hp-accent); color: var(--hp-navy); transform: translateY(-2px); }
.hp-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hp-btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* HERO */
.hp-hero {
    position: relative;
    background: var(--hp-navy);
    overflow: visible;
}

.hp-hero__inner {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
}

.hp-hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(18,40,83,.92) 0%,
        rgba(18,40,83,.75) 50%,
        rgba(0,144,154,.25) 100%
    );
}

.hp-hero__body {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
    padding-top: 2rem;
}

.hp-hero__content { max-width: 600px; }

.hp-hero__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .8rem;
}

.hp-hero__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: .88rem;
    color: rgba(255,255,255,.8);
}
.hp-hero__meta i { color: var(--hp-accent); }

.hp-hero__fallback {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 5rem 24px;
    min-height: 420px;
}
.hp-hero__fallback-text { color: #fff; }
.hp-hero__fallback-text h1 {
    font-size: clamp(2rem,5vw,3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hp-text-accent { color: var(--hp-accent); }
.hp-hero__fallback-text p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; font-size: 1.05rem; }
.hp-hero__fallback-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255,255,255,.12);
    height: 260px;
    border-radius: var(--hp-radius-lg);
    border: 2px dashed rgba(255,255,255,.18);
}

/* Floating search bar */
.hp-hero__search-bar {
    position: relative;
    z-index: 10;
    padding: 0;
    margin-top: -28px;
    margin-bottom: 0;
}
.hp-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow-lg);
    padding: 10px 10px 10px 20px;
    gap: 10px;
    border: 2px solid var(--hp-bg-light);
}
.hp-search-form__icon { color: var(--hp-text-muted); font-size: 1rem; flex-shrink: 0; }
.hp-search-form__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--hp-text);
    background: transparent;
    min-width: 0;
}
.hp-search-form__input::placeholder { color: var(--hp-text-muted); }
.hp-search-form__btn { flex-shrink: 0; }

/* CATEGORIES */
.hp-cats { padding: 4rem 24px 3rem; }

.hp-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.hp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.2rem .8rem;
    background: var(--hp-white);
    border: 2px solid #E8EDF5;
    border-radius: var(--hp-radius);
    text-decoration: none;
    color: var(--hp-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    transition: all .25s;
    box-shadow: var(--hp-shadow);
}
.hp-cat-card:hover {
    border-color: var(--hp-teal);
    background: var(--hp-teal);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
}
.hp-cat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hp-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--hp-navy);
    transition: all .25s;
}
.hp-cat-card:hover .hp-cat-card__icon { background: rgba(255,255,255,.25); color: #fff; }
.hp-cat-card__name { line-height: 1.2; }

/* TRENDING */
.hp-trending {
    background: var(--hp-bg-light);
    padding: 4rem 0;
}
.hp-trending .container { padding-left: 24px; padding-right: 24px; }

/* LATEST */
.hp-latest { padding: 4rem 24px; }

/* RECIPE CARDS */
.hp-recipe-grid {
    display: grid;
    gap: 1.25rem;
}
.hp-recipe-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hp-recipe-grid--5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.hp-recipe-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    text-decoration: none;
    color: var(--hp-text);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.hp-recipe-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-lg); color: var(--hp-text); }

.hp-recipe-card__img {
    position: relative;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.hp-recipe-card__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--hp-navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 100px;
}

.hp-recipe-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.hp-recipe-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--hp-navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-recipe-card__meta {
    display: flex;
    gap: .75rem;
    font-size: .8rem;
    color: var(--hp-text-muted);
    margin-top: auto;
}
.hp-recipe-card__meta i { color: var(--hp-teal); }

/* CTA BANNER */
.hp-cta {
    background: linear-gradient(135deg, var(--hp-navy) 0%, #0D4C6E 60%, var(--hp-teal-dark) 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.hp-cta::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(244,167,0,.08);
}

.hp-cta__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
}

.hp-cta__text h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .8rem;
}
.hp-cta__text p {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    max-width: 480px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.hp-cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hp-cta__icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.hp-cta__icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1rem;
    background: rgba(255,255,255,.1);
    border-radius: var(--hp-radius);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    min-width: 80px;
}
.hp-cta__icon-item i { font-size: 1.5rem; color: var(--hp-accent); }
.hp-cta__icon-item span { font-family: var(--font-heading); font-size: .8rem; font-weight: 600; }

.hp-fire { color: #FF6B35; margin-right: .3rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hp-cta__inner { grid-template-columns: 1fr; }
    .hp-cta__icons { display: none; }
    .hp-hero__fallback { grid-template-columns: 1fr; }
    .hp-hero__fallback-img { display: none; }
}
@media (max-width: 640px) {
    .hp-recipe-grid--4,
    .hp-recipe-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .hp-cats__grid { grid-template-columns: repeat(3, 1fr); }
    .hp-hero__inner { min-height: 420px; }
    .hp-search-form { flex-wrap: wrap; }
    .hp-search-form__btn { width: 100%; justify-content: center; }
    .hp-section-header--between { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
    .hp-recipe-grid--4,
    .hp-recipe-grid--5 { grid-template-columns: 1fr; }
    .hp-cats__grid { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE / RECIPE DETAIL PAGE — navy + teal + gold palette
═══════════════════════════════════════════════════════════════ */

/* ── Article title ── */
.article-title {
    color: var(--hp-navy) !important;
    font-weight: 900 !important;
}

/* ── Article image — rounded, subtle navy shadow ── */
.article-main-image {
    border-radius: var(--hp-radius-lg) !important;
    box-shadow: 0 12px 36px rgba(27,58,107,.15) !important;
}

/* ── Breadcrumb ── */
.breadcrumb ol li a {
    color: var(--hp-teal) !important;
}
.breadcrumb ol li a:hover {
    color: var(--hp-teal-dark) !important;
    opacity: 1 !important;
}
.breadcrumb-current { color: var(--hp-text-muted) !important; }

/* ── Recipe Action Bar ── */
.recipe-action-box {
    background: linear-gradient(135deg, #EEF3FA 0%, #E8F5F6 100%) !important;
    border: 1px solid #D0DFF0 !important;
    border-left: 4px solid var(--hp-navy) !important;
    border-radius: var(--hp-radius) !important;
}
.rab-author { color: var(--hp-navy) !important; }
.rab-publish { color: var(--hp-text-muted) !important; }

/* Action buttons */
.rab-btn {
    border-radius: var(--hp-radius) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: .88rem !important;
}
.rab-jump {
    background: var(--hp-navy) !important;
    color: #fff !important;
}
.rab-jump:hover { background: var(--hp-navy-dark) !important; }

.rab-print {
    background: #fff !important;
    color: var(--hp-navy) !important;
    border: 1.5px solid #D0DFF0 !important;
}
.rab-print:hover { border-color: var(--hp-navy) !important; background: #F4F7FB !important; }

.rab-edit {
    background: var(--hp-teal) !important;
    color: #fff !important;
}
.rab-edit:hover { background: var(--hp-teal-dark) !important; }

/* ── Table of Contents ── */
.recipe-toc-dropdown {
    border: 1.5px solid #D0DFF0 !important;
    border-radius: var(--hp-radius) !important;
    background: #F8FAFD !important;
}
.recipe-toc-dropdown summary {
    color: var(--hp-navy) !important;
    background: #EEF3FA !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}
.recipe-toc-dropdown summary i { color: var(--hp-teal) !important; }
.recipe-toc-dropdown .toc-body { border-top: 1.5px solid #D0DFF0 !important; }
.recipe-toc-dropdown .toc-body a {
    color: var(--hp-teal) !important;
    font-weight: 600;
}
.recipe-toc-dropdown .toc-body a:hover { color: var(--hp-navy) !important; }

/* ── Social Share ── */
.rs-btn {
    border: 2px solid #D0DFF0 !important;
    color: var(--hp-navy) !important;
    border-radius: var(--hp-radius) !important;
    background: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: .88rem !important;
    transition: all .2s !important;
}
.rs-btn:hover {
    background: var(--hp-navy) !important;
    color: #fff !important;
    border-color: var(--hp-navy) !important;
}
.rs-pin i { color: #E60023; }
.rs-btn:hover i { color: #fff !important; }
.rs-fb i { color: #1877F2; }

/* ── Recipe Card Container ── */
.recipe-card-container {
    border: 1.5px solid #D0DFF0 !important;
    border-top: 4px solid var(--hp-navy) !important;
    border-radius: var(--hp-radius-lg) !important;
    box-shadow: 0 8px 32px rgba(27,58,107,.10) !important;
}

/* Header inside card */
.rc-header h2 { color: var(--hp-navy) !important; }
.rc-header p { color: var(--hp-text-muted) !important; }

/* Meta grid — time/servings bar */
.rc-meta-grid {
    border-top: 1.5px solid #D0DFF0 !important;
    border-bottom: 1.5px solid #D0DFF0 !important;
    background: #F4F7FB !important;
    border-radius: 8px !important;
    padding: 1.2rem 0 !important;
}
.rc-meta-item i { color: var(--hp-teal) !important; }
.rc-meta-item strong { color: var(--hp-navy) !important; }

/* Details list (cuisine, category, etc.) */
.rc-details-list i { color: var(--hp-teal) !important; }
.rc-details-list .text-primary { color: var(--hp-teal) !important; }

/* Section headings inside card */
.rc-section h3 {
    color: var(--hp-navy) !important;
    border-bottom: 2px solid #D0DFF0 !important;
}

/* Ingredient pills — navy */
.rc-pill {
    background-color: var(--hp-navy) !important;
    box-shadow: -4px 4px 0px 0px rgba(27,58,107,.25) !important;
}

/* Completed state — faded navy */
.rc-ingredients li.completed .rc-pill,
.rc-step.completed .rc-step-badge {
    background-color: #8FA6C9 !important;
    box-shadow: none !important;
}

/* Step badges — teal */
.rc-step-badge {
    background-color: var(--hp-teal) !important;
    box-shadow: -4px 4px 0px 0px rgba(0,144,154,.25) !important;
}

/* Notes circle ── gold */
.rc-circle {
    background-color: var(--hp-accent) !important;
    color: var(--hp-navy) !important;
    font-weight: 800 !important;
}

/* Rich text heading color */
.rich-text h2,
.rich-text h3,
.rich-text h4 { color: var(--hp-navy) !important; }

/* Article content links */
.article-content a {
    color: var(--hp-teal) !important;
    font-weight: 600;
}
.article-content a:hover { color: var(--hp-navy) !important; }


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS — navy + teal + gold palette
═══════════════════════════════════════════════════════════════ */

/* ── Search widget ── */
.sidebar-search-widget {
    background: #F4F7FB !important;
    border: 1.5px solid #D0DFF0 !important;
    border-radius: var(--hp-radius) !important;
}
.sidebar-search-widget .widget-title {
    color: #fff !important;
    letter-spacing: .06em !important;
}
.sidebar-search-input-wrap {
    border: 1.5px solid #D0DFF0 !important;
    border-radius: 30px !important;
}
.sidebar-search-input-wrap:focus-within {
    border-color: var(--hp-teal) !important;
    box-shadow: 0 0 0 3px rgba(0,144,154,.12) !important;
}
.sidebar-search-btn {
    background: var(--hp-navy) !important;
    border-radius: 0 30px 30px 0 !important;
}
.sidebar-search-btn:hover { background: var(--hp-teal) !important; }

/* ── Author card ── */
.author-sidebar-card {
    background: linear-gradient(160deg, #F4F7FB 0%, #EBF5F6 100%) !important;
    border: 1.5px solid #D0DFF0 !important;
    border-top: 4px solid var(--hp-navy) !important;
    border-radius: var(--hp-radius-lg) !important;
    box-shadow: var(--hp-shadow) !important;
}
.author-card-img-wrapper {
    border: 3px solid var(--hp-teal) !important;
    box-shadow: 0 4px 16px rgba(0,144,154,.25) !important;
    background: #fff !important;
}
.author-card-body h3 { color: var(--hp-navy) !important; }
.author-card-bio p { color: var(--hp-text-muted) !important; }
.author-card-bio h4 {
    color: var(--hp-navy) !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
}

/* Bio "Read full bio" link */
.bio-read-more {
    color: var(--hp-teal) !important;
    font-weight: 700 !important;
}
.bio-read-more:hover { color: var(--hp-navy) !important; }

/* Social icon circles */
.author-socials a {
    background: var(--hp-navy) !important;
    color: #fff !important;
    transition: background .2s, transform .2s !important;
}
.author-socials a:hover {
    background: var(--hp-teal) !important;
    transform: translateY(-3px) !important;
}

/* ── "You Might Also Like" widget title ── */
.widget-title {
    background: linear-gradient(90deg, var(--hp-navy) 0%, #1e4a85 100%) !important;
    border: none !important;
    border-radius: var(--hp-radius) !important;
    color: #fff !important;
    position: relative !important;
    overflow: hidden !important;
}
.widget-title::after {
    content: '';
    position: absolute;
    right: -10px; top: 50%;
    transform: translateY(-50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(244,167,0,.15);
}

/* ── Suggested recipe cards ── */
.might-like-item {
    background: #F8FAFD !important;
    border: 1.5px solid #D0DFF0 !important;
    border-radius: var(--hp-radius) !important;
    box-shadow: var(--hp-shadow) !important;
    transition: transform .2s, box-shadow .2s, border-color .2s !important;
}
.might-like-item:hover {
    border-color: var(--hp-teal) !important;
    box-shadow: var(--hp-shadow-lg) !important;
    transform: translateY(-4px) !important;
}
.might-like-img {
    border-right: 1.5px solid #D0DFF0 !important;
}
.might-like-info h4 {
    color: var(--hp-navy) !important;
    font-size: .95rem !important;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE NAVIGATION DRAWER
═══════════════════════════════════════════════════════════════ */

.mobile-drawer {
    position: fixed;
    top: 0; left: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    background: var(--hp-navy);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.mobile-drawer__backdrop.is-open { opacity: 1; pointer-events: all; }

.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-drawer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
}
.mobile-drawer__logo i { color: var(--hp-accent); font-size: 1.3rem; }

.mobile-drawer__close {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.mobile-drawer__close:hover { background: rgba(255,255,255,.22); }

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}
.mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: .85rem 1.4rem;
    color: rgba(255,255,255,.88);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .18s, border-color .18s, color .18s;
}
.mobile-drawer__link:hover,
.mobile-drawer__link:active {
    background: rgba(255,255,255,.08);
    border-left-color: var(--hp-accent);
    color: #fff;
}
.mobile-drawer__link i { width: 18px; text-align: center; color: var(--hp-accent); font-size: .9rem; }
.mobile-drawer__link--sub {
    padding-left: 2.4rem;
    font-size: .88rem;
    color: rgba(255,255,255,.65);
}
.mobile-drawer__link--sub i { color: rgba(255,255,255,.4); }

.mobile-drawer__search {
    display: flex;
    margin: 1rem 1.2rem 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,.2);
}
.mobile-drawer__search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .9rem;
    font-family: var(--font-body);
}
.mobile-drawer__search-input::placeholder { color: rgba(255,255,255,.45); }
.mobile-drawer__search-btn {
    background: var(--hp-teal);
    border: none;
    color: #fff;
    padding: .75rem 1rem;
    cursor: pointer;
    font-size: .95rem;
    transition: background .2s;
}
.mobile-drawer__search-btn:hover { background: var(--hp-teal-dark); }


/* ═══════════════════════════════════════════════════════════════
   FOOTER REDESIGN (mobile-first)
═══════════════════════════════════════════════════════════════ */

/* ── Author Section ───────────────────────────────────────────── */
.hp-author {
    padding: 4rem 0;
}
.hp-author__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.hp-author__card {
    background: #fff;
    border: 1.5px solid #D0DFF0;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(27,58,107,.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    width: 240px;
    transition: transform .2s, box-shadow .2s;
}
.hp-author__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(27,58,107,.13);
}
.hp-author__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px dashed var(--hp-accent, #F4A700);
    padding: 3px;
    margin-bottom: .4rem;
}
.hp-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.hp-author__avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hp-navy, #1B3A6B), var(--hp-teal, #00909A));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    border-radius: 50%;
}
.hp-author__name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hp-navy, #1B3A6B);
    margin: 0;
}
.hp-author__role {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--hp-accent, #F4A700);
    margin: 0;
}
.hp-author__bio {
    color: var(--hp-text-muted, #5C6B7A);
    font-size: .88rem;
    line-height: 1.65;
    margin: .2rem 0 .4rem;
}
.hp-author__link {
    font-size: .85rem;
    font-weight: 700;
    color: var(--hp-teal, #00909A);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}
.hp-author__link:hover { color: var(--hp-navy, #1B3A6B); }
@media (max-width: 600px) {
    .hp-author__grid { gap: 1.2rem; }
    .hp-author__card { width: calc(50% - .6rem); padding: 1.5rem 1rem; }
}
@media (max-width: 400px) {
    .hp-author__card { width: 100%; }
}

.hp-footer {
    background: var(--hp-navy) !important;
    padding: 3rem 0 0 !important;
    margin-top: 4rem;
}
.hp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 24px;
    padding-right: 24px;
}
.hp-footer__logo { color: #fff !important; }
.hp-footer__logo i { color: var(--hp-accent) !important; }
.hp-footer__logo .logo-text { color: #fff !important; }
.hp-footer__tagline { color: rgba(255,255,255,.55) !important; margin-top: .8rem; font-size: .92rem; line-height: 1.6; }
.hp-footer__heading {
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--hp-accent) !important;
    margin-bottom: 1rem;
}
.hp-footer__link {
    display: block;
    color: rgba(255,255,255,.65) !important;
    font-family: var(--font-heading);
    font-size: .9rem;
    margin-bottom: .55rem;
    transition: color .2s;
}
.hp-footer__link:hover { color: #fff !important; }
.hp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1) !important;
    padding: 1.2rem 24px !important;
    text-align: center;
}
.hp-footer__bottom p { color: rgba(255,255,255,.4) !important; font-size: .85rem; margin: 0; }


/* ═══════════════════════════════════════════════════════════════
   GLOBAL MOBILE OVERRIDES
   Breakpoints: 768px (tablet), 480px (phone), 360px (small phone)
═══════════════════════════════════════════════════════════════ */

/* ── Shared typography scale-down ── */
@media (max-width: 768px) {
    /* Navbar: hide desktop links, show burger */
    .hp-navbar .nav-links { display: none !important; }
    .hp-navbar__burger { display: flex !important; align-items: center; }

    /* Container padding */
    .container { padding-left: 16px !important; padding-right: 16px !important; }

    /* Sections spacing */
    .hp-cats       { padding: 2.5rem 16px 2rem !important; }
    .hp-trending   { padding: 2.5rem 0 !important; }
    .hp-latest     { padding: 2.5rem 16px !important; }
    .hp-cta        { padding: 3rem 0 !important; }

    /* Cats grid — 4 col on tablet */
    .hp-cats__grid { grid-template-columns: repeat(4, 1fr) !important; gap: .75rem !important; }

    /* Recipe grids */
    .hp-recipe-grid--4 { grid-template-columns: repeat(2, 1fr) !important; }
    .hp-recipe-grid--5 { grid-template-columns: repeat(2, 1fr) !important; }

    /* CTA banner */
    .hp-cta__inner { grid-template-columns: 1fr !important; padding-left: 16px !important; padding-right: 16px !important; }
    .hp-cta__icons { display: none !important; }

    /* Hero */
    .hp-hero__inner { min-height: 380px !important; }
    .hp-hero__title { font-size: 1.6rem !important; }
    .hp-hero__desc  { font-size: .95rem !important; }
    .hp-hero__body  { padding-bottom: 3.5rem !important; }
    .hp-hero__search-bar { margin-top: -22px !important; }
    .hp-search-form { padding: 8px 8px 8px 14px !important; border-radius: 12px !important; }

    /* Article page */
    .article-title  { font-size: 1.7rem !important; text-align: left !important; }
    .article-main-image { height: 240px !important; }

    /* Action bar */
    .recipe-action-box {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 16px !important;
    }
    .rab-right { flex-wrap: wrap !important; gap: 8px !important; }
    .rab-btn   { padding: 9px 14px !important; font-size: .82rem !important; }

    /* TOC */
    .recipe-toc-dropdown summary { font-size: .92rem !important; padding: 12px 16px !important; }
    .recipe-toc-dropdown .toc-body { padding: 12px 16px !important; }

    /* Social share */
    .recipe-social-row { gap: 8px !important; }
    .rs-btn { padding: 7px 13px !important; font-size: .82rem !important; }

    /* Recipe card */
    .recipe-card-container { padding: 1.2rem !important; }
    .rc-header h2 { font-size: 1.4rem !important; }
    .rc-meta-grid { grid-template-columns: repeat(3,1fr) !important; }
    .rc-section h3 { font-size: 1.3rem !important; }

    /* Sidebar */
    .layout-with-sidebar { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .might-like-img { width: 90px !important; height: 90px !important; }

    /* Footer */
    .hp-footer__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.8rem !important;
    }
    .hp-footer__brand { grid-column: 1 / -1; }

    /* Section headers */
    .hp-section-header__title { font-size: 1.3rem !important; }
}

/* ── Phone ── */
@media (max-width: 480px) {
    /* Cats: 3 col */
    .hp-cats__grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Recipe grids: 2 col always */
    .hp-recipe-grid--4,
    .hp-recipe-grid--5 { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }

    /* Smaller card bodies */
    .hp-recipe-card__body { padding: .75rem !important; }
    .hp-recipe-card__title { font-size: .88rem !important; }
    .hp-recipe-card__meta { font-size: .75rem !important; }

    /* Hero */
    .hp-hero__inner   { min-height: 300px !important; }
    .hp-hero__content { max-width: 100% !important; }
    .hp-hero__title   { font-size: 1.35rem !important; }
    .hp-hero__meta    { font-size: .8rem !important; gap: .6rem !important; }
    .hp-badge         { font-size: .7rem !important; padding: 4px 10px !important; }

    /* Search bar */
    .hp-search-form { flex-wrap: wrap !important; }
    .hp-search-form__btn { width: 100% !important; justify-content: center !important; border-radius: 8px !important; }

    /* CTA text */
    .hp-cta__text h2 { font-size: 1.4rem !important; }
    .hp-cta__actions { flex-direction: column !important; }
    .hp-cta__actions .hp-btn { width: 100% !important; justify-content: center !important; }

    /* Article */
    .article-title   { font-size: 1.4rem !important; }
    .article-main-image { height: 200px !important; border-radius: 10px !important; }
    .breadcrumb      { font-size: .78rem !important; margin-top: 1.5rem !important; }

    /* Action bar buttons stack */
    .rab-right { width: 100%; }
    .rab-btn   { flex: 1 1 auto; text-align: center; justify-content: center; }

    /* Recipe card */
    .rc-header h2      { font-size: 1.2rem !important; }
    .rc-header p       { font-size: .9rem !important; }
    .rc-meta-grid      { grid-template-columns: 1fr !important; gap: .6rem !important; padding: .8rem 0 !important; }
    .rc-meta-item      { flex-direction: row !important; justify-content: center !important; gap: .5rem !important; text-align: left !important; }
    .rc-section h3     { font-size: 1.15rem !important; }
    .rc-pill           { padding: 6px 9px !important; font-size: .85rem !important; }
    .rc-item-text      { font-size: .95rem !important; }
    .rc-step-badge     { padding: 6px 12px !important; font-size: .85rem !important; }

    /* Author card */
    .author-sidebar-card { margin-top: 70px !important; }
    .author-card-img-wrapper { width: 130px !important; height: 130px !important; top: -65px !important; }
    .author-card-body  { margin-top: 75px !important; }
    .author-card-body h3 { font-size: 1.6rem !important; }

    /* Sidebar might-like */
    .might-like-img    { width: 80px !important; height: 80px !important; }
    .might-like-info   { padding: 10px 12px !important; }
    .might-like-info h4 { font-size: .88rem !important; }

    /* Social share */
    .recipe-social-row { gap: 6px !important; }
    .rs-btn { font-size: .78rem !important; padding: 6px 10px !important; }

    /* Widget title */
    .widget-title { font-size: 1.2rem !important; padding: 14px !important; }

    /* Footer */
    .hp-footer__grid { grid-template-columns: 1fr !important; gap: 1.4rem !important; }
    .hp-footer        { padding: 2.2rem 0 0 !important; }
}

/* ── Small phones ── */
@media (max-width: 360px) {
    .hp-cats__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hp-cat-card   { padding: .9rem .5rem !important; font-size: .78rem !important; }
    .hp-recipe-grid--4,
    .hp-recipe-grid--5 { grid-template-columns: 1fr !important; }
    .rc-meta-grid  { grid-template-columns: 1fr !important; }
}
