/*
Theme Name: GeneratePress Child
Description: Child theme of GeneratePress
Author: Your Name
Template: generatepress
Version: 1.0.0
*/

/* ===== Base tokens (both schemes can override) ===== */
:root{
  --radius: 10px;
  --shadow-1: 0 6px 18px rgba(0,0,0,.08);
  --shadow-2: 0 10px 24px rgba(0,0,0,.12);
}

/* ===== Scheme: Elegant Minimal Bakehouse ===== */
.scheme-bakehouse{
  /* Softer, higher-contrast bakehouse palette */
  --bg:        #FAF7F2; /* Cream */
  --text:      #2A2A2A; /* Deep neutral for readability */
  --primary:   #E6D9CC; /* Linen */
  --accent:    #C06A3A; /* Toasted terracotta */
  --highlight: #C9D6BE; /* Muted sage */
}

/* ===== Scheme: Modern Editorial ===== */
.scheme-editorial{
  --bg:        #FDFDFB; /* Soft White */
  --text:      #2B2B2B; /* Deep Espresso */
  --primary:   #D6C3B4; /* French Linen */
  --accent:    #B7653C; /* Terracotta */
  --highlight: #E8C3A8; /* Dusty Rose */
}

/* ===== Typography (global) ===== */
body{
  background: #FFF;
  color: var(--text);
  font-family: "Lora", "Source Serif Pro", serif; /* body */
}
h1, h2, h3, .entry-title{
  font-family: "Playfair Display", "Cormorant Garamond", serif; /* headers */
  color: var(--text);
  font-weight: 800;
  letter-spacing: .01em;
}

/* ===== Links ===== */
a{ color: var(--accent); text-decoration-color: rgba(0,0,0,.12); }
a:hover{ filter: brightness(.95); text-decoration-color: currentColor; }

/* ===== Buttons (GP + Gutenberg) ===== */
button,
input[type="submit"],
.wp-block-button__link,
a.button,
.button{
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}
.wp-block-button__link:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover{
  filter: brightness(.95);
}

/* Outline/secondary button utility */
.btn-secondary,
.is-style-outline .wp-block-button__link{
  background: transparent !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
}

/* ===== Chips / badges / separators ===== */
.chip, .cat-chip{
  display:inline-flex; align-items:center; gap:.5rem;
  background: color-mix(in srgb, var(--primary) 30%, #fff);
  color: color-mix(in srgb, var(--text) 75%, #000);
  border-radius: 6px; padding: .4rem .6rem; font-weight:700;
}
hr.wp-block-separator, .separator{
  border: none; height: 3px; width: 90px;
  background: var(--accent); border-radius: 2px;
}

/* ===== Card shells (reuse across sections) ===== */
.card{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-1); overflow:hidden;
}
.card--hover:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); transition: .12s ease; }

/* ===== Images in cards ===== */
.card img, .cat-img, .wp-block-post-featured-image img{
  display:block; width:100%; height:auto; object-fit:cover; border-radius: calc(var(--radius) - 2px);
}

/* ===== GeneratePress bits you likely want tinted ===== */
.site-header, .inside-header{ background: transparent; }
.main-navigation .main-nav ul li a{ 
    font-weight:600; 
    line-height: 90px;
}
.main-navigation .main-nav ul li a:hover{ 
    color: var(--accent); 
    background: none;
}

/* Remove hover background from WordPress menu items */
.menu-item.menu-item-type-post_type.menu-item-object-page:hover,
.menu-item a:hover {
    background: none !important;
}
.site-info, .footer-widgets{ background: color-mix(in srgb, var(--primary) 12%, var(--bg)); }

/* ===== Custom Header Layout ===== */
/* Override GeneratePress header layout for logo left, menu right */
.site-header .inside-header {
    justify-content: space-between;
    padding: 20px 40px;
}

/* Ensure logo appears on the left */
.site-header .site-branding {
    order: 1;
}

/* Ensure navigation appears on the right */
.site-header .main-navigation {
    order: 2;
}

/* Logo styling */
.site-header .site-logo img,
.site-header .custom-logo {
    max-height: 60px;
    width: auto;
}

/* Navigation styling */
.site-header .main-navigation .main-nav ul li a {
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease;
    line-height: 90px;
}

.site-header .main-navigation .main-nav ul li a:hover {
    color: var(--accent);
    background: none;
}

/* Ensure proper spacing */
.site-header .site-branding-container {
    margin-right: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .site-header .inside-header {
        flex-direction: column;
        text-align: center;
    }
    
    .site-header .site-branding,
    .site-header .main-navigation {
        order: unset;
    }
    
    .site-header .main-navigation {
        margin-top: 20px;
    }
}

/* ===== Navigation Scalloped Border Effect ===== */
.main-navigation::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    content: " ";
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 15%, var(--bg)) 25%, #FFFFFF 26%, #FFFFFF 40%);
    background-color: color-mix(in srgb, var(--primary) 15%, var(--bg));
    background-size: 25px 50px;
    height: 25px;
    background-repeat: repeat-x;
    z-index: 99999;
}

/* Ensure the site header has relative positioning for the pseudo-element */
.main-navigation {
    position: relative;
    padding-top: 15px; /* Add padding to prevent logo overlap */
}

/* Subtle shadow under the main menu (specific class combo) */
.main-navigation.nav-align-right.has-menu-bar-items.sub-menu-right{
  /* bottom-only shadow, very light */
  box-shadow: 0 10px 24px -20px rgba(0,0,0,.25);
}

/* ===== Top Bar Background Color ===== */
.top-bar {
    background: color-mix(in srgb, var(--primary) 15%, var(--bg));
}

/* ===== Utilities ===== */
.text-accent{ color: var(--accent) !important; }
.bg-primary{ background: var(--primary) !important; }
.bg-highlight{ background: var(--highlight) !important; }

/* ===== Section Wrapper (standardized padding) ===== */
.section-wrapper {
    padding: 20px 0;
}
@media (max-width: 768px){
  .section-wrapper{ 
    padding: 20px 16px; 
  }
  .section-wrapper .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* --- Category circles --- */
.is-style-rounded img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* --- Responsive columns for the circle row --- */
@media (max-width: 768px) {
  .wp-block-columns.alignwide {
    flex-wrap: wrap;
  }
  .wp-block-columns.alignwide > .wp-block-column {
    flex-basis: 50% !important;
  }
}
@media (max-width: 480px) {
  .wp-block-columns.alignwide > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* --- Optional: tighten the yellow label under cover images --- */
.wp-block-cover p.has-background {
  display: inline-block;
  padding: 10px 14px;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  border-radius: 2px;
  letter-spacing: .06em;
}

/* --- Ensure cover images fill nicely --- */
.wp-block-cover__image-background {
  object-fit: cover;
}


/* limit image size and keep a nice portrait ratio */
.welcome-hero .welcome-photo { max-width: 520px; margin: 0; }
.welcome-hero .welcome-photo img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

/* slightly narrower image column on desktop */
@media (min-width: 782px){
  .welcome-hero .wp-block-columns > .wp-block-column:first-child{ flex-basis:38% !important; }
  .welcome-hero .wp-block-columns > .wp-block-column:last-child{  flex-basis:62% !important; }
}

/* CTA button (accent color) */
.welcome-cta .wp-block-button__link{
  background: var(--accent);
  color: #fff;
  font-weight:700;
  padding:.85rem 1.25rem;
  border-radius:6px;
}
.welcome-cta .wp-block-button__link:hover{
  filter:brightness(0.95);
}

/* Social icon style */
.welcome-socials .social-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  border-radius:999px;
  background: color-mix(in srgb, var(--primary) 20%, #fff);
  box-shadow:0 2px 6px rgba(0,0,0,.06) inset;
  transition:transform .06s ease;
}
.welcome-socials .social-icon svg{
  fill: var(--text);
}
.welcome-socials .social-icon:hover{
  transform:translateY(-1px);
}

/* Responsive */
@media (max-width: 900px){
  .welcome-hero .wp-block-columns{gap:20px}
}
@media (max-width: 781px){
  .welcome-hero .wp-block-column{flex-basis:100%!important}
}

/* strong, always-on accent button */
.welcome-hero .welcome-cta .wp-block-button__link{
  background: var(--accent) !important;
  color: #fff !important;
  font-weight:700;
  padding:.85rem 1.25rem;
  border-radius:6px;
}
.welcome-hero .welcome-cta .wp-block-button__link:hover{ filter:brightness(.95); }
/* align button + icon nicely */
.welcome-actions{ align-items:center; }
.welcome-actions .social-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px; background: color-mix(in srgb, var(--primary) 20%, #fff);
}
.welcome-actions .social-icon svg{ fill: var(--text); }




/* Popular grid – all layout controlled by this class */
.popular-section .popular-grid{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

/* Card sizing: desktop 5 per row, tablet 4, mobile 2 */
.popular-section .card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow:hidden;
  position:relative;
  flex: 1 1 calc(20% - 18px);
  min-width: 200px;
  max-width: calc(20% - 18px);
}

/* Square media area */
.popular-section .card__media{
  aspect-ratio:1/1;
  background-size:cover;
  background-position:center;
}

/* Title (smaller, two-line clamp) */
.popular-section .card__body{
  padding:12px 14px 16px;
}
.popular-section .card__title{
  font-weight: 600;
  font-size:1.25rem;
  line-height:1.25;
}

/* Number badge using data-i */
.popular-section .card::after{
  content: attr(data-i);
  position:absolute;
  bottom: calc(100% - 28px);
  left: 12px;
  transform: translateY(50%);
  background: var(--accent);
  color: #fff;
  font-weight:700;
  width:28px; height:28px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
  font-size:.85rem;
}

/* Hover */
.popular-section .card:hover{ transform:translateY(-1px); box-shadow: var(--shadow-2); transition:.12s ease; }

/* Responsive */
@media (max-width: 1100px){
  .popular-section .card{
    flex-basis: calc(25% - 18px);
    max-width: calc(25% - 18px);
  }
}
@media (max-width: 900px){
  .popular-section .card{
    flex-basis: calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
  }
}
@media (max-width: 768px){
  /* Tablet and mobile: 2 columns */
  .popular-section .popular-grid{
    gap: 16px;
  }
  .popular-section .card{
    flex-basis: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    min-width: unset;
  }
  .popular-section .card__title{ font-size:1rem; }
}
@media (max-width: 480px){
  /* Mobile: maintain 2 columns, tighter spacing */
  .popular-section .popular-grid{
    gap: 12px;
  }
  .popular-section .card{
    flex-basis: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }
  .popular-section .card__title{ font-size:0.9rem; }
}


/* ===== Can't-Live-Without section wrapper ===== */
.cantlive-section{
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
}
.cantlive-section .section-inner{
  max-width: var(--wp--style--global--content-size, 1200px);
  margin: 0 auto;
  padding: 0 16px;
  text-align:center;
}
.cantlive-section .section-title{
  font-weight:800;
  letter-spacing:.02em;
  margin:0 0 6px;
}
.cantlive-section .section-subtitle{
  color: color-mix(in srgb, var(--text) 70%, #000);
  margin:0 0 28px;
}

/* ===== Grid (flex) ===== */
.clw-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:28px;
}

/* Three-up on desktop, two-up tablet, one-up small */
.clw-card{
  position:relative;
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding:56px 22px 24px; /* top pad leaves room for overlapping thumb */
  width: 100%;
  max-width: 360px;        /* cap column width */
  flex: 1 1 30%;
}

/* Tablet: 2 per row */
@media (max-width: 980px){
  .clw-card{ flex-basis: 45%; }
}
/* Mobile: 1 per row */
@media (max-width: 640px){
  .clw-card{ flex-basis: 100%; }
}

/* Overlapping circular thumb */
.clw-thumb{
  position:absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* Title + copy */
.clw-title{
  font-weight:700;
  margin: 6px 0 8px;
}
.clw-text{
  color: color-mix(in srgb, var(--text) 80%, #000);
  line-height:1.8;
  margin: 10px 0 16px;
}

/* Stars (inline SVG) */
.clw-stars{
  display:flex;
  gap:6px;
  justify-content:center;
  margin:8px 0 6px;
}
.clw-stars svg{ width:18px; height:18px; fill: var(--text); }

/* Link button */
.clw-link{
  display:inline-block;
  margin-top:4px;
  font-weight:800;
  color: #fff;
  text-decoration:underline;
  text-underline-offset: 2px;
  background: var(--accent);
  padding: 8px 14px;
  border-radius:6px;
}
.clw-link:hover{ filter:brightness(.95); }

.wp-block-separator {
  border: none;
  height: 4px;
  width: 80px;
  background: var(--accent);
  margin: 40px auto;
  border-radius: 2px;
}

/* ===== Latest Posts wrapper ===== */
.latest-section .section-inner{
  max-width: var(--wp--style--global--content-size, 1200px);
  margin: 0 auto;
  padding: 0 16px;
}

.latest-section .section-subtitle{
  color: color-mix(in srgb, var(--text) 70%, #000);
  margin: 0 0 24px;
}

/* ===== Grid (flex) ===== */
.latest-grid{
  display:flex;
  flex-wrap:wrap;
  gap: 28px;                 /* spacing between cards */
}

/* 3 per row on desktop, 2 tablet, 1 mobile — gaps included in calc */
:root{
  --latest-gap: 28px;
  --latest-cols-lg: 3;
  --latest-cols-md: 2;
}
.post-card{
  display:flex;
  flex-direction: row;
  text-decoration:none;
  color: inherit;
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-2);
  transition: transform .12s ease, box-shadow .12s ease;
  flex: 0 0 calc((100% - (var(--latest-cols-lg) - 1) * var(--latest-gap)) / var(--latest-cols-lg));
}
.post-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.14); }

/* Media side (left) uses background-image for safe crop */
.post-card__media{
  width: 50%;
  aspect-ratio: 16/11;       /* pleasant crop; adjust if you like */
  background-size: cover;
  background-position: center;
}

/* Content side (right) */
.post-card__content{
  width: 50%;
  padding: 22px 22px 24px;
  display:flex;
  flex-direction: column;
  justify-content:center;
  gap: 10px;
}

/* Title */
.post-card__title{
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}



.latest-posts-header {
  margin-bottom: 40px;
}

.latest-posts-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.latest-posts-divider {
  margin-top: 16px;
}

.divider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-blue { background-color: var(--primary); }
.dot-orange { background-color: var(--accent); }
.dot-green { background-color: var(--highlight); }
.dot-red { background-color: var(--accent); }
.dot-purple { background-color: var(--primary); }

/* Latest Posts Grid */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 32px;
}

/* Grid column modifiers (desktop) */
.latest-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.latest-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.latest-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.latest-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.latest-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.latest-grid.cols-1 { grid-template-columns: repeat(1, 1fr); }

.latest-card {
  background: rgb(255 255 255 / 68%);
  border-radius: 0;
  overflow: hidden;
  -webkit-backdrop-filter: brightness(0.95);
  backdrop-filter: brightness(0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-card:hover {
  transform: translateY(-4px);
}

.latest-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
}

.latest-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5; /* Instagram-style 4:5 aspect ratio for all images */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.latest-card:hover .latest-card__img {
  transform: scale(1.05);
}

.latest-card__content {
  padding: 22px 22px 24px;
}

.latest-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 60%, #000);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-decoration: underline;
}

.latest-card__title {
  margin: 0 0 12px 0;
}

.latest-card__title a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card__title a:hover {
  color: var(--accent);
}

.latest-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--text) 60%, #000);
  font-size: 0.875rem;
}

.latest-card__meta svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .latest-grid,
  .latest-grid.cols-6,
  .latest-grid.cols-5,
  .latest-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .latest-posts-title {
    font-size: 2rem;
  }
  
  .latest-grid,
  .latest-grid.cols-6,
  .latest-grid.cols-5,
  .latest-grid.cols-4,
  .latest-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  
  .latest-card__content {
    padding: 16px;
  }
}

@media (max-width: 480px) {

  .latest-posts-title {
    font-size: 1.75rem;
  }
  
  .latest-grid,
  .latest-grid.cols-6,
  .latest-grid.cols-5,
  .latest-grid.cols-4,
  .latest-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

/* Latest Posts Pagination */
.latest-pagination {
  margin-top: 40px;
  text-align: center;
}

.latest-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--primary) 30%, #fff);
  border-radius: 50%;
  color: color-mix(in srgb, var(--text) 60%, #000);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.latest-pagination .page-numbers:hover,
.latest-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.latest-pagination .page-numbers.prev,
.latest-pagination .page-numbers.next {
  font-size: 1.2rem;
  text-indent: -9999px; /* Hide the text */
  position: relative;
}

.latest-pagination .page-numbers.prev::before {
  content: "‹";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.latest-pagination .page-numbers.next::before {
  content: "›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.latest-pagination .page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}

.latest-pagination .page-numbers.dots:hover {
  background: none;
  border: none;
  color: color-mix(in srgb, var(--text) 60%, #000);
}

/* Parent-aware layout (container queries) */
/* Make the shortcode section a size container so its children can adapt
   to the width of the parent container (e.g., sidebars). */
.latest-posts-section { container-type: inline-size; }

/* When the container is narrow (like typical sidebars), show two columns */
@container (max-width: 520px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .latest-pagination .page-numbers {
    width: 36px;
    height: 36px;
    margin: 0 2px;
    font-size: 0.8rem;
  }
  
  .latest-pagination .page-numbers.prev,
  .latest-pagination .page-numbers.next {
    font-size: 1rem;
  }
  
  .latest-pagination .page-numbers.prev::before,
  .latest-pagination .page-numbers.next::before {
    font-size: 1rem;
  }
}

/* ===== HOMEPAGE STYLES ===== */

/* Homepage Hero Section */
.homepage-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 80px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 30px 0;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn.primary {
  background: var(--accent);
  color: #fff;
}

.hero-btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, #000);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.hero-btn.secondary:hover {
  background: white;
  color: var(--primary);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

/* Featured Categories Section */
.featured-categories {
  padding: 80px 0;
  background: color-mix(in srgb, var(--primary) 5%, var(--bg));
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.category-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.category-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

.category-info {
  padding: 25px;
}

.category-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.category-count {
  color: color-mix(in srgb, var(--text) 60%, #000);
  font-size: 0.9rem;
  font-weight: 500;
}


.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--text) 60%, #000);
  margin: 10px 0 0 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-thumbnail {
  height: 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.post-content {
  padding: 25px;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--text) 60%, #000);
}

.post-category {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--text);
  line-height: 1.3;
}

.post-excerpt {
  color: color-mix(in srgb, var(--text) 60%, #000);
  line-height: 1.6;
  font-size: 0.95rem;
}

.posts-footer {
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-1);
  transition: filter 0.2s ease;
}

.view-all-btn:hover {
  filter: brightness(.95);
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--text) 80%, #000) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-btn.primary {
  background: var(--accent);
  color: #fff;
}

.cta-btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, #000);
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-btn.secondary:hover {
  background: white;
  color: var(--text);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .homepage-hero {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .featured-categories,
  .cta-section {
    padding: 60px 0;
  }
}

/* ===== Tagline Section ===== */
.tagline-section {
    background: color-mix(in srgb, var(--primary) 8%, var(--bg));
    padding: 20px 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
}

.tagline-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tagline-bold {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tagline-script {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text);
    font-style: italic;
}

/* ===== Category Latest Posts Section ===== */
.category-latest-section {
    background: transparent;
    width: 100%;
}
.category-latest-section .latest-posts-header{ margin-bottom: 28px; }
.category-latest-section .latest-posts-title{ margin-bottom: 8px; }
.category-latest-section .section-subtitle{ margin: 0; }

/* ===== NEW HOMEPAGE SECTIONS ===== */

.recipe-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.recipe-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.recipe-card-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--primary) 20%, var(--bg));
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 12px;
  text-transform: uppercase;
}

/* Category Circles Grid */
.category-circles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 50px;
  text-align: center;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-circle-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.category-circle-link:hover {
  transform: translateY(-2px);
}

.category-circle img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--primary) 20%, #fff);
  transition: border-color 0.2s ease;
}

.category-circle-link:hover img {
  border-color: var(--accent);
}

.category-circle p {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
  color: var(--text);
}

/* Welcome Hero Section Updates */
.welcome-content {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 32px;
  align-items: center;
}

.welcome-text h2 {
  font-weight: 800;
  text-transform: lowercase;
  font-size: 2.5rem;
  margin: 0 0 20px 0;
  color: var(--text);
}

.welcome-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: color-mix(in srgb, var(--text) 70%, #000);
}

.welcome-text p:last-of-type {
  margin-bottom: 0;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.welcome-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.welcome-cta:hover {
  background: color-mix(in srgb, var(--accent) 90%, #000);
  transform: translateY(-1px);
}

/* Badge for Latest Posts */
.badge-new {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
}

/* Responsive Design for New Sections */
@media (max-width: 1200px) {
  .recipe-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-circles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .recipe-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-circles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .welcome-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .welcome-text h2 {
    font-size: 2rem;
  }
  
  .welcome-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .category-circles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .category-circle img {
    width: 60px;
    height: 60px;
  }
  
  .category-circle p {
    font-size: 0.8rem;
  }
  
  .recipe-cards-grid {
    margin-top: 24px;
  }
  
  .category-circles-grid {
    margin-top: 32px;
  }
}


/* ===== WIDGET INNER PADDING - ONLY FOR WIDGETS WITH INNER PADDING CLASS ===== */
.widget.inner-padding {
  padding: 0;
}

/* ===== About Author Section ===== */
.about-author-section{
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* ===== LSI WIDGET ICON OVERRIDES ===== */
/* Force LSI widget icons to use theme colors with rounded backgrounds */

.lsi-social-icons.icon-set-lsi_widget-1 li a,
.widget_lsi_widget .lsi-social-icons li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.3s ease, background 0.3s ease !important;
  font-size: 18px !important;
  padding: 0 !important;
}

.lsi-social-icons.icon-set-lsi_widget-1 li a i,
.widget_lsi_widget .lsi-social-icons li a i {
  line-height: 1 !important;
  color: #fff !important;
}

.lsi-social-icons.icon-set-lsi_widget-1 li a:hover,
.widget_lsi_widget .lsi-social-icons li a:hover {
  transform: scale(1.1) !important;
  background: var(--accent) !important;
}

/* Specific platform colors using theme variables */
.lsi-social-icons.icon-set-lsi_widget-1 .lsi-social-facebook a,
.widget_lsi_widget .lsi-social-facebook a {
  background: var(--accent) !important;
}

.lsi-social-icons.icon-set-lsi_widget-1 .lsi-social-instagram a,
.widget_lsi_widget .lsi-social-instagram a {
  background: var(--accent) !important;
}

.lsi-social-icons.icon-set-lsi_widget-1 .lsi-social-pinterest a,
.widget_lsi_widget .lsi-social-pinterest a {
  background: var(--accent) !important;
}

.lsi-social-icons.icon-set-lsi_widget-1 .lsi-social-twitter a,
.widget_lsi_widget .lsi-social-twitter a {
  background: var(--accent) !important;
}

/* Remove any borders or backgrounds that might interfere */
.lsi-social-icons.icon-set-lsi_widget-1 li,
.widget_lsi_widget .lsi-social-icons li {
  margin: 0 6px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.lsi-social-icons.icon-set-lsi_widget-1,
.widget_lsi_widget .lsi-social-icons {
  display: flex !important;
  gap: 6px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Align icons to left in top bar */
.top-bar .lsi-social-icons.icon-set-lsi_widget-1,
.top-bar .widget_lsi_widget .lsi-social-icons {
  justify-content: flex-start !important;
  text-align: left !important;
}
