/* Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Default GeneratePress child theme
Author: Tom Usborne
Author URI: https://tomusborne.com
Template: generatepress
Version: 0.1
*/

/* GeneratePress Site CSS */

/* Limit featured image height on single posts */
body.single .post-image img,
body.single .wp-post-image {
    max-height: 450px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.custom-logo,
.site-branding img {
    max-height: 60px !important;
}

.grid-container {
    max-width: 1200px !important;
}

/* Global left/right padding (GeneratePress) */
@media (min-width: 768px) {
    .grid-container,
    .inside-top-bar,
    .inside-header,
    .inside-navigation,
    .site-content,
    .inside-footer-widgets,
    .inside-site-info {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 767px) {
    .grid-container,
    .inside-top-bar,
    .inside-header,
    .inside-navigation,
    .site-content,
    .inside-footer-widgets,
    .inside-site-info {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

#site-navigation {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.button:visited {
    border-width: 1px;
    border-style: solid;
    border-color: inherit;
}

.mc4wp-form-fields input[type="email"] {
    margin-bottom: 10px;
    width: 100%;
}

.entry-meta {
    font-weight: 300;
    font-size: 13px;
}

.main-navigation:not(.toggled) li.menu-social > a,
.main-navigation:not(.toggled) li.search-item > a {
    padding: 0 10px;
}

.post-image img {
    transition: opacity 500ms;
}

.post-image img:hover {
    opacity: 0.9;
}

.no-sidebar .entry-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page.no-sidebar .entry-title {
    text-align: center;
}

.top-bar .lsi-social-icons a,
.top-bar .lsi-social-icons a:focus,
.top-bar .lsi-social-icons a:active,
.top-bar .lsi-social-icons a:hover {
    background: transparent !important;
}

.top-bar .lsi-social-icons li {
    margin-bottom: 0 !important;
}

/* End GeneratePress Site CSS */

.tasty-recipes-jump-link,
.tasty-recipes-print-link {
    display: inline-block;
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: none;
    background-color: #0F828C;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tasty-recipes-jump-link:hover,
.tasty-recipes-print-link:hover {
    background-color: #78B9B5;
}

.tasty-recipes {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 700px !important;
    display: block;
}

.fallback-toc {
    margin-bottom: 2rem;
    background: #f9f9f9;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.fallback-toc h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fallback-toc h2 .arrow {
    font-size: 0.9em;
    margin-left: 10px;
}

.fallback-toc ul {
    list-style: none;
    padding-left: 0;
}

.fallback-toc li {
    margin: 6px 0;
}

.fallback-toc li.h3 {
    margin-left: 20px;
}

.fallback-toc .toc-link {
    text-decoration: none;
    color: #0073aa;
}

.fallback-toc .toc-link:hover {
    text-decoration: underline;
}

.fallback-toc #fallback-toc-list {
    display: none;
    margin-top: 10px;
}

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.main-navigation a {
    color: #320A6B;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0F828C;
    border-bottom: 2px solid #0F828C;
}

.button,
.wp-block-button__link {
    background-color: #0F828C;
    color: #fff;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
}

.button:hover,
.wp-block-button__link:hover {
    background-color: #78B9B5;
    color: #fff;
}

.button.secondary {
    background-color: #650084;
    color: #fff;
}

.button.secondary:hover {
    background-color: #320A6B;
}

h2,
h3 {
    color: #320A6B;
    font-family: "Playfair Display", serif;
}

h4,
h5,
h6 {
    color: #650084;
}

/*********** ABOUT ME WIDGET ************/
.about-me-widget {
    background: #ffffff;
    border: 2px solid #78B9B5;
    padding: 26px;
    border-radius: 14px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.about-me-photo {
    width: 100%;
    max-width: 200px;
    border-radius: 100%;
    margin-bottom: 18px;
    display: block;
    border: 4px solid #0F828C;
}

.about-me-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #320A6B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-me-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.about-me-button {
    display: inline-block;
    background: #0F828C;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.about-me-button:hover {
    background: #78B9B5;
}

/*********** RECENT POSTS WIDGET ************/
#right-sidebar .recent-posts-widget-with-thumbnails {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff;
    border: 2px solid #78B9B5;
    padding: 26px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

#right-sidebar .recent-posts-widget-with-thumbnails .widget-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #320A6B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Remove default padding around widget */
#right-sidebar .recent-posts-widget-with-thumbnails .widget-inner-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Post items */
.recent-posts-widget-with-thumbnails ul li {
    margin-bottom: 18px !important;
}

.recent-posts-widget-with-thumbnails ul li:last-child {
    margin-bottom: 0 !important;
}

.recent-posts-widget-with-thumbnails img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #78B9B5;
}

.recent-posts-widget-with-thumbnails ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.recent-posts-widget-with-thumbnails .rpwwt-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #0F828C;
}

.recent-posts-widget-with-thumbnails .rpwwt-post-author {
    font-size: 13px;
    color: #666;
}

/* ✅ Remove default narrow padding wrapper (GeneratePress) */
#right-sidebar .widget .inner-padding,
#right-sidebar .widget .widget-inner-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ✅ Fix About Me container to actually fill width */
.about-me-widget {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

/* 1) Remove the sidebar's inner padding so widgets can truly fill the column */
#right-sidebar .inside-right-sidebar,
#secondary .inside-right-sidebar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2) Kill extra widget margins/padding that create side gutters */
#right-sidebar .widget,
#secondary .widget {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 3) Some GP sites wrap widgets with an "inner-padding" div – remove it */
#right-sidebar .widget .inner-padding,
#right-sidebar .widget .widget-inner-padding,
#secondary .widget .inner-padding,
#secondary .widget .widget-inner-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 4) Make YOUR About Me card fill the whole sidebar column */
.about-me-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 5) Keep the CTA on ONE line */
.about-me-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    background: #0F828C;
    color: #fff;
    border-radius: 8px;
    transition: .25s ease-in-out;
}

.about-me-button:hover {
    background: #78B9B5;
}

#right-sidebar .widget,
#secondary .widget {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ✅ Center ALL CONTENT inside sidebar widgets */
#right-sidebar .widget,
#secondary .widget {
    text-align: center !important;
}

/* ✅ About Me — force all internal items center */
.about-me-widget,
.about-me-widget * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ✅ Center the button */
.about-me-button {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap;
}

/* === FORCE "RECENT POSTS" FULLY CENTERED === */
/* kill plugin float and left alignment */
.recent-posts-widget-with-thumbnails img {
    float: none !important;
    display: block !important;
    margin: 0 auto 8px !important;
}

/* center the whole list */
.recent-posts-widget-with-thumbnails ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px;
}

/* stack each item vertically (image above, text below) and center it */
.recent-posts-widget-with-thumbnails li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    width: 100%;
}

/* ensure title/author are centered and not constrained by leftover widths */
.recent-posts-widget-with-thumbnails .rpwwt-post-title,
.recent-posts-widget-with-thumbnails .rpwwt-post-author {
    text-align: center !important;
    width: 100%;
}

/* =============================== 
   RECENT POSTS – BIG, CENTERED CARDS 
   =============================== */
/* Card spacing */
.recent-posts-widget-with-thumbnails ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0;
    margin: 0;
}

/* Each item = centered mini card */
.recent-posts-widget-with-thumbnails li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
    width: 100%;
    max-width: 290px;
    background: #F9FDFD;
    border: 1px solid #E6F1F0;
    border-radius: 12px;
    padding: 14px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.recent-posts-widget-with-thumbnails li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border-color: #78B9B5;
}

/* MUCH BIGGER thumbnails */
.recent-posts-widget-with-thumbnails img {
    float: none !important;
    display: block !important;
    margin: 0 auto 6px !important;
    width: 110px !important;
    height: 110px !important;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #78B9B5;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

/* Stronger text */
.recent-posts-widget-with-thumbnails .rpwwt-post-title {
    font-size: 17px !important;
    line-height: 1.3;
    font-weight: 700;
    color: #0F828C;
}

.recent-posts-widget-with-thumbnails .rpwwt-post-author {
    font-size: 13px !important;
    color: #666;
}

/* Tighter vertical rhythm inside widget */
.recent-posts-widget-with-thumbnails ul li {
    margin: 0 !important;
}

/* Responsive sizes */
@media (max-width: 1024px) {
    .recent-posts-widget-with-thumbnails img {
        width: 96px !important;
        height: 96px !important;
    }
}

@media (max-width: 600px) {
    .recent-posts-widget-with-thumbnails img {
        width: 84px !important;
        height: 84px !important;
    }
}

/* ========================================= 
   RECENT POSTS — UNIFORM, CONSISTENT SIZE 
   Works with "Recent Posts Widget With Thumbnails"
   ========================================= */
/* 0) Reset any plugin quirks */
.recent-posts-widget-with-thumbnails * {
    box-sizing: border-box;
}

.recent-posts-widget-with-thumbnails img {
    max-width: none !important;
}

/* 1) Center the list and give each item the same width */
.recent-posts-widget-with-thumbnails ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0;
    margin: 0;
}

/* 2) Each post = same card width & padding */
.recent-posts-widget-with-thumbnails li a {
    width: 100%;
    max-width: 300px;
    background: #F9FDFD;
    border: 1px solid #E6F1F0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
}

/* 3) Normalise the THUMB wrapper (some installs add a span/div) */
.recent-posts-widget-with-thumbnails .rpwwt-post-thumb,
.recent-posts-widget-with-thumbnails .rpwwt-thumb,
.recent-posts-widget-with-thumbnails li a > span:first-child {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    border: 3px solid #78B9B5;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

/* 4) Force the IMG inside to fill the wrapper exactly */
.recent-posts-widget-with-thumbnails .rpwwt-post-thumb img,
.recent-posts-widget-with-thumbnails .rpwwt-thumb img,
.recent-posts-widget-with-thumbnails li a > span:first-child img,
.recent-posts-widget-with-thumbnails img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
}

/* 5) Text styles (same for all) */
.recent-posts-widget-with-thumbnails .rpwwt-post-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0F828C !important;
    line-height: 1.3 !important;
    margin: 2px 0 0 0 !important;
}

.recent-posts-widget-with-thumbnails .rpwwt-post-author {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 0 2px 0 !important;
}

/* 6) Optional hover (keeps size identical) */
.recent-posts-widget-with-thumbnails li a:hover {
    border-color: #78B9B5;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

/* 7) Ensure the widget itself doesn't squeeze the cards */
#right-sidebar .recent-posts-widget-with-thumbnails,
#secondary .recent-posts-widget-with-thumbnails {
    text-align: center !important;
}

/* Force one-column blog/archive list in GeneratePress */
.blog .generate-columns-container,
.archive .generate-columns-container {
    display: flex;
    flex-wrap: wrap;
}

.blog .generate-columns-container > article,
.archive .generate-columns-container > article {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* If GP adds a special "featured-column", keep it full width too */
.blog .featured-column,
.archive .featured-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Optional: reduce vertical gap between posts */
.blog .inside-article,
.archive .inside-article {
    margin-bottom: 32px;
}

/* Content / sidebar proportions on archives */
@media (min-width: 1024px) {
    .right-sidebar .site-content .content-area {
        width: 68%;
    }
    .right-sidebar .site-content .widget-area {
        width: 32%;
    }
}

/* Make blog cards neat and consistent */
.generate-columns-container .inside-article {
    border: 1px solid #e9edf0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.generate-columns-container .entry-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 8px 0 6px;
}

.generate-columns-container .entry-summary p {
    margin: 6px 0 0;
}

/* Thumbnails: keep square and consistent */
.generate-columns-container .post-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}

/* Trim the huge middle gutter on large screens */
@media (min-width: 1200px) {
    .site-content .inside-article {
        margin-bottom: 24px;
    }
    .generate-columns-container {
        column-gap: 20px;
    }
}

/* If GeneratePress adds a 100%-width "featured-column", neutralize it when a sidebar exists */
@media (min-width: 1024px) {
    .right-sidebar .generate-columns-container .featured-column.grid-100 {
        width: 100%;
        max-width: 100%;
    }
}

/* Featured card only spans the content column (not under the sidebar) */
@media (min-width: 1024px) {
    .right-sidebar .generate-columns-container .featured-column.grid-100 {
        width: 100%;
    }
    .right-sidebar .site-content .content-area .generate-columns-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .right-sidebar .generate-columns-container .featured-column {
        grid-column: 1 / -1;
    }
}

/* === FIX PACK: keep post images inside the card & make grid consistent === */
/* 0) Stop the old "force 1 column" from breaking widths */
.blog .generate-columns-container > article,
.archive .generate-columns-container > article {
    width: auto !important;
    max-width: none !important;
    flex: unset !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 1) Clean, responsive grid inside the CONTENT column only */
.right-sidebar .site-content .content-area .generate-columns-container {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1024px) {
    .right-sidebar .site-content .content-area .generate-columns-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Featured spans both columns inside the content area */
.right-sidebar .generate-columns-container .featured-column {
    grid-column: 1 / -1 !important;
}

/* 2) Card container clips its children so images can't overflow */
.generate-columns-container .inside-article {
    position: relative;
    overflow: hidden;
    border: 1px solid #e9edf0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

/* 3) Image wrapper also clips; image is block-level and fills width */
.generate-columns-container .post-image {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 12px;
}

.generate-columns-container .post-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* 4) Sidebar recent posts: never overflow the mini card */
#right-sidebar .recent-posts-widget-with-thumbnails li a {
    overflow: hidden;
}

#right-sidebar .recent-posts-widget-with-thumbnails .rpwwt-post-thumb,
#right-sidebar .recent-posts-widget-with-thumbnails img {
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: block !important;
}

/* 5) Safety: avoid any accidental negative margins from themes/plugins */
.generate-columns-container .post-image,
.generate-columns-container .post-image img {
    margin: 0 !important;
}

/* Pagination: no box, no padding, just simple inline links */
nav#nav-below.paging-navigation {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 24px 0 0 !important;
}

.paging-navigation .nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.paging-navigation .nav-links a,
.paging-navigation .nav-links span {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #0F828C;
    font-weight: 600;
    text-decoration: none;
}

.paging-navigation .nav-links a:hover {
    text-decoration: underline;
    color: #78B9B5;
}

/* ===== 1) PAGINATION: only bottom, centered, no box ===== */
/* Hide the top pagination if GP outputs it */
nav#nav-above.paging-navigation {
    display: none !important;
}

/* Style the bottom one */
nav#nav-below.paging-navigation {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 28px 0 12px !important;
    width: 100%;
}

/* Make it span full width of the posts grid row */
.right-sidebar .site-content .content-area nav#nav-below.paging-navigation {
    grid-column: 1 / -1 !important;
    justify-self: center;
}

.paging-navigation .nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.paging-navigation .nav-links a,
.paging-navigation .nav-links span {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: #0F828C;
    font-weight: 700;
    text-decoration: none;
}

.paging-navigation .nav-links a:hover {
    text-decoration: underline;
    color: #78B9B5;
}

/* ===== 2) IMAGE → TEXT SPACING IN CARDS ===== */
/* Add breathing room under thumbnails */
.generate-columns-container .post-image {
    margin: 16px 0 14px !important;
    overflow: hidden;
    border-radius: 10px;
}

.generate-columns-container .post-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* Slightly more inner spacing for the card text area */
.generate-columns-container .entry-summary,
.generate-columns-container .entry-content {
    margin-top: 6px !important;
}

/* On mobile, add a bit more space so it breathes */
@media (max-width: 600px) {
    .generate-columns-container .post-image {
        margin: 18px 0 16px !important;
    }
}

/* ==== SINGLE POST TITLES — WORKS FOR BOTH GP HEADER + FIRST CONTENT HEADING ==== */
/* A) GeneratePress native post title (top of the article, outside content) */
body.single .inside-article > header.entry-header > .entry-title {
    font-family: "Playfair Display", serif !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #320A6B !important;
    margin: 0 0 12px !important;
    text-align: center !important;
}

body.single .inside-article > header.entry-header {
    text-align: center !important;
    margin: 0 0 26px !important;
    padding: 0 12px !important;
}

body.single .inside-article > header.entry-header::after {
    content: "";
    display: block;
    width: 80px;