/*
Theme Name: Graceful Vibes Blog
Theme URI: https://optimathemes.com/graceful-vibes-blog-theme/
Author: Aslam
Author URI: http://optimathemes.com/
Description: Graceful Vibes Blog is a flexible WordPress theme perfect for bloggers, creators, and storytellers across all niches, from lifestyle, fashion, travel, and beauty to tech, food, fitness, health, and news. Featuring a clean, modern, and minimal design, this theme is fully responsive and Retina-ready, ensuring your content looks stunning on every device. Graceful Vibes Blog is also WooCommerce compatible, SEO optimized, translation and RTL-ready, making it ideal for both personal and professional websites. Whether you are starting a blog or growing your online presence, this theme offers the elegance and functionality you need.
Template: graceful
Version: 1.0.0
Requires at least: 5.3
Tested up to: 6.8
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: graceful-vibes-blog
Tags: blog, one-column, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, footer-widgets, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, e-commerce
*/

/*
Customization of this theme starts here
*/

/* style.css */

/*--------------------------------------------------------------
Header Sections
--------------------------------------------------------------*/

.post-header {
    margin-top: 20px;
}

.post-categories {
    background: #f1f1f1;
}

.blog .post-title {
    font-size: 34px;
    line-height: 38px;
}

.blog article .post-meta {
    margin-bottom: 10px;
}

.blog .post-page-content {
    padding-top: 10px;
}

aside .graceful-widget h2, 
.graceful-widget .widget-title {
    background: #ffffff;
    font-weight: 700;
    border: 1px solid #eeeeee;
    border-top: 4px solid #FFA500;
    border-radius: 5px;
}

aside .graceful-widget h2::after, 
.graceful-widget .widget-title::after {
    border: none;
}


#graceful-post-slider .owl-nav{
    background: transparent;
}

.post-title {
    word-wrap: break-word;
}

.graceful-slider-info {
    padding: 20px;
}

.graceful-slider-title {
    font-size: 32px;
    word-wrap: break-word;
}

#primary .continue-read a {
    border: 1px solid #111111;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    line-height: 34px;
    text-transform: capitalize;
}

#primary .continue-read a:hover {
    background: #f1f1f1;
}

@media screen and (max-width: 480px) {
    .graceful-slider-title {
        width: 300px;
    }
}

.site-images {
    min-height: 0;
}


.single .post-date {
    color: #111111 !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.single .post-title-author { 
    color: #111111 !important;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: normal;
}

.blog article .post-date {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.blog article .post-header .post-meta a {
    font-family: 'Open Sans', sans-serif;  
    font-size: 13px; 
}

.content-column > li {
    margin-bottom: 60px;
}

.post-footer{
    border-bottom: 1px solid #eeeeee;
}

@media screen and (max-width: 480px) {
    .content-column > li {
        width: 100%;
    }
}

.graceful-vibes-category-title {
    background: #fafafa;
    margin-bottom: 30px;
    border-bottom: 1px solid #FFA500;
    display: inline-block;
    padding: 2px 10px 5px;
    width: 100%;
    text-align: center;
}

/* Top Navigation
   ========================================================================== */

.grace-latest {
    text-align: center;
    background: #f3f3f3;
    padding: 7px;
    font-size: 20px;
    margin-bottom: 36px;
}

.main-navigation-sidebar {
  position: absolute;
  top: 0px;
  left: 40px;
  z-index: 1;
}
            
.main-navigation-search {
  position: absolute;
  top: 0px;
  right: 40px;
  z-index: 2;
}

#top-navigation {
  text-align: center;
  box-shadow: 0px 1px 5px rgba(0,0,0, 0.1);
  border-bottom: 1px solid #999999;
  background: linear-gradient(90deg,#5686FF 0%,#FF5671 100%);
}

#top-navigation {
    border-bottom: 1px solid #eeeeee;
}

#top-menu {
  display: inline-block;
}

#top-menu a:focus {
  outline: 3px dotted #000000 !important;
}

#top-menu li {
  position: relative;
}

#top-menu li.menu-item-has-children>a:after {
    font-family: FontAwesome;
    content: "\f107";
    margin-left: 6px;
    font-size: 12px;
}

#top-menu ul li.menu-item-has-children>a:after {
    font-family: FontAwesome;
    content: "\f105";
    font-size: 14px;
    float: right;
}

#top-menu > li {
  display: inline-block;
  list-style: none;
}

#top-menu li a {
  display: block;
  position: relative;
  padding: 0 5px;
  margin-left: 5px;
}

#top-menu li a {
  color: #000000;
}

#top-menu ul li a {
  color: #000000;
}

#top-menu li a:first-child {
  margin-left: 0;
}

#top-menu > li > a {
  display: block;
  text-decoration: none;
}

#top-menu > li:first-child > a {
  padding-left: 0px;
}

#top-menu > li:last-child > a {
  padding-right: 0px;
}

#top-menu ul ul {
  top: -1px;
  left: 100%;
}

#top-menu .menu-item:hover > ul, #top-menu .menu-item:focus-within > ul {
  left: 0;
  opacity: 1;
}

#top-menu .menu-item:hover ul ul, #top-menu .menu-item:focus-within ul ul{
  left: 100%;
}

#top-menu .sub-menu {
  position: absolute;
  left: -999em;
  z-index: 1101;
  width: 170px;
  text-align: left;
  border: 1px solid #e4e4e4;
  border-width: 1px;
  opacity: 0;
  background: #ffffff;
}

#top-menu .sub-menu a {
  border-bottom: 1px solid #dddddd;
}

#top-menu .sub-menu a:hover {
  background: #fafafa;
}

#top-menu .sub-menu > li:last-of-type > a {
  border: none;
}

#top-menu .sub-menu li:first-child > .sub-menu {
  margin-top: -1px;
}

#top-menu .sub-menu > li > a {
  display: block;
  width: 100%;
  padding: 0px 15px;
  margin: 0;
}

#top-menu li a {
  font-size: 11px;
  line-height: 34px !important;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}
#top-menu .sub-menu > li > a {
  font-size: 11px;
  line-height: 24px;
  letter-spacing: 0.5px;
}

#top-menu li a {
  font-size: 11px;
  line-height: 40px;
  letter-spacing: 1px;
  font-weight: 600;
}
#top-menu .sub-menu > li > a {
  font-size: 11px;
  line-height: 22px;
  letter-spacing: 0.5px;
}

#top-menu li a,
#main-menu li a {
  text-transform: uppercase;
}

#top-navigation > div {
  padding-left: 30px;
  padding-right: 30px;
}

#main-navigation {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
    box-shadow: 0 2px 20px 0 rgba(14.000000000000002,14.000000000000002,19,.050980392156862744);
}

.entry-header {
    height: 150px;
    border-bottom: 1px solid #eeeeee;
}

.site-branding a {
    font-size: 52px;
}

.main-content {
    margin-top: 40px;
    padding-left: 0;
    padding-right: 0;
}

aside .wp-block-latest-posts.wp-block-latest-posts__list li {
    border-bottom: 1px solid #000000;
}

.wp-block-search__label {
    display: none;
}

/* Media Query Min 768px
   ========================================================================== */
@media screen and (min-width: 768px) {
    .blog .post-page-content p {
        padding: 0 24px;
    }
    #main-navigation .wrapped-content {
        padding-left: 0;
    }
    .main-navigation-search {
        right: 0;
    }
    #main-navigation .navigation-socials {
        right: 35px;
    }
}


#graceful-post-slider {
    padding-left: 40px;
    padding-right: 40px;
}

#graceful-post-slider.wrapped-content {
    padding-left: 0;
    padding-right: 0;
}


#site-footer {
    border-top: 1px solid #999999;
}


.graceful-hero-banner {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.graceful-hb-col {
    position: relative;
    float: left;
    width: 100%;
}

.graceful-hb-col:last-child {
    min-height: 400px;
}

.graceful-hb-col img {
    width: 450px;
    height: 450px;
    margin: 50px;
}

.graceful-hb-col h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.graceful-hb-col a {
    padding: 6px 20px;
    background: #333333;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    float: left;
    border-radius: 5px;
}



@media screen and (min-width: 768px) {
    
    .wrapped-content .main-navigation-search {
        right: 0;
    }
    #main-navigation .wrapped-content .navigation-socials {
        right: 35px;
    }

    .main-navigation-search {
        right: 35px;
    }
    #main-navigation .navigation-socials {
        right: 75px;
    }
    .graceful-hb-col {
        width: 49%;
    }
}

.graceful-widget .graceful-recent-image-box a {
    font-size: 14px;
}


#graceful-post-slider .slide-item {
    background-size: cover;
    height: 420px;
}

.single .post-page-content {
    padding: 0px 0px 10px;
}

#responsive-menu .sub-menu > li {
    background: #eeeeee;
}

#responsive-menu .sub-menu > li li {
    background: #cccccc;
}

.close-graceful-search {
    background: #000000;
}

#site-menu li a {
    font-family: 'Open Sans', sans-serif;
}

aside .graceful-widget h2 {
    font-family: Open Sans, sans-serif;
}

#graceful-post-slider   -wrap {
    margin-top: 20px;
}


.graceful-hb-col a:focus {
    outline: 2px dotted #000000 !important;
}


.close-graceful-search {
    background: #dddddd;
    border: 1px solid #aaaaaa;
}

#site-footer {
    background: #fafafa;
}

#site-footer .graceful-widget h2 {
    padding: 3px 5px 2px;
    background: #ffffff !important;
}

.intro-text form {
    margin-top: 35px;
}


#primary .continue-read a {
    font-family: Open Sans, sans-serif;
    font-size: 14px;
    font-weight: 300;
    background: #fafafa;
}

.blog .post-header {
    width: 80%;
    text-align: left;
    margin: 40px 10% 0;
}

.blog .post-page-content {
    width: 80%;
    text-align: left;
    margin: 0px 10%;
}

.blog .post-page-content p {
    padding: 0;
    margin: 0;
}

.blog .post-footer {
    width: 80%;
    text-align: left;
    margin: 0px 10%;
    padding: 3px 3px 3px 0 !important;
}

.blog .continue-read {
    text-align: left;
}

.post-categories {
    
}

.site-images img {
    border-radius: 12px;
}

.site-images a::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}
.site-images a:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}
@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}
@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Hero Banner Image Animation Effect */
.graceful-hero-banner img {
    -webkit-animation: morph 15s ease-in-out infinite;
    animation: morph 15s ease-in-out infinite
}

@-webkit-keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%
    }

    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%
    }

    to {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%
    }
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%
    }

    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%
    }

    to {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%
    }
}


.graceful-hero-banner .graceful-hb-col .navigation-socials a {
    padding: 2px;
    background: transparent;
    color: #ff6481;
    font-size: 18px;
    font-weight: bold;
}


/*--------------------------------------------------------------
Featured Boxes Sections
--------------------------------------------------------------*/

#featured-boxes {
  border-bottom: 1px solid #eee;
  background: #fff;
  margin-top: 40px;
}

#featured-boxes .wrapped-content {
  font-size: 0;
  text-align: center;
}

#featured-boxes .featured-box {
  position: relative;
  float: left;
}

#featured-boxes a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#featured-boxes .featured-box img {
    border-radius: 20px;
}

#featured-boxes .graceful-wrap-outer {
  padding: 12px;
}

#featured-boxes h4 {
  display: inline-block;
  padding: 11px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: rgba(0,0,0,0.50);
  color: #ffffff !important;
}

#featured-boxes .featured-box {
    width: calc((100% - 50px ) /3);
    width: -webkit-calc((100% - 70px ) /3);
    margin-right: 34px;
}

#featured-boxes .featured-box:last-child {
    margin-right: 0;
}


@media screen and (max-width: 768px) {
    .featured-box {
        display: block;
    }
    .main-navigation-search {
        right: 20px;
        top: 7px !important;
    }
}


@media screen and (max-width: 480px) {
    #featured-boxes .featured-box {
        width: 100%;
        margin-bottom: 34px;
    }
    
    #featured-boxes {
      padding: 20px !important;
    }

    .main-navigation-search {
        top: 0 !important;
    }
}


/* Media Queries */
@media screen and (max-width: 480px) {
    .graceful-hero-banner {
        flex-direction: column;
        align-items: flex-start; /* Adjust as needed */
        flex-direction: column-reverse;

    }
    .graceful-hb-col a {
        float: unset;
        padding: 8px 20px;
    }
    .main-navigation-search {
        right: 20px;
    }
    .graceful-hb-col img {
        width: 100%;
        height: 100%;
        text-align: center; 
        margin: 20px 0px 30px;
    }
    .graceful-hb-col h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .graceful-hb-col:last-child {
        min-height: 300px;
    }
    .graceful-hb-col:first-child::after {
        left: 0;
        width: 100%;
    }
    .graceful-hb-col:first-child {
        text-align: center;
    }
}

@media (min-width:700px) and (max-width:900px) {
    .graceful-hb-col img {
        width: 340px;
        height: 340px;
    }
    .graceful-hb-col:first-child {
        text-align: center;
    }
    .graceful-hb-col:first-child::after {
        display: none;
    }
    .graceful-hb-col:last-child {
        min-height: 200px;
        text-align: center;
    }
}

.site-menu-wrapper {
    margin-right: 0px;
}




/**
 * Vibes Slider Styles
 */

.graceful-vibes-slider-section {
  margin-top: 30px;
}

.graceful-vibes-slider-section h2 {
  font-size: 20px;
  font-weight: bold;
  font-family: Open Sans, sans-serif;
}

.graceful-vibes-latest-posts-slider .slider-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  min-height: 180px;
}

.slider-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 5px;
  margin-bottom: 15px;
}

.slider-date {
  color: #fff;
  padding: 18px 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  flex-shrink: 0;
}

.slider-date .day {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}
.slider-date .month {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.slider-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.slider-title a {
  color: inherit;
  text-decoration: none;
}

.slider-author {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.slider-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.slider-category {
  text-decoration: none;
  font-weight: 500;
}

.slider-reading-time {
  color: #777;
  display: flex;
  align-items: center;
  gap: 4px;
}

.graceful-vibes-latest-posts-slider {
  margin: 20px 0;  
}

.graceful-vibes-latest-posts-slider .owl-stage .owl-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* nth-child category colors */
/* Top border colors */
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+1) {
    border-top: 4px solid #00C49F; /* teal green */
}
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+2) {
    border-top: 4px solid #FF6F61; /* coral red */
}
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+3) {
    border-top: 4px solid #FFA500; /* orange */
}

/* Date background colors */
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+1) .slider-date {
    background: #00C49F; /* teal green */
}
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+2) .slider-date {
    background: #FF6F61; /* coral red */
}
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+3) .slider-date {
    background: #FFA500; /* orange */
}

/* Category text colors to match date background */
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+1) .slider-category span {
    color: #00C49F;
}
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+2) .slider-category span {
    color: #FF6F61;
}
.graceful-vibes-latest-posts-slider .owl-stage .owl-item:nth-child(3n+3) .slider-category span {
    color: #FFA500;
}

/* Owl dots scoped to this slider */
.graceful-vibes-latest-posts-slider .owl-dots .owl-dot span {
    background: #ddd;
    transition: background 0.3s ease;
}
.graceful-vibes-latest-posts-slider .owl-dots .owl-dot.active span {
    background: #FF6F61;
}

/* Force Owl dots visible */
.graceful-vibes-latest-posts-slider .owl-dots {
  display: flex !important;
  justify-content: center;
  margin-top: 15px;
}
.graceful-vibes-latest-posts-slider .owl-dot span {
  width: 10px;
  height: 10px;
  background: #ccc;
  display: block;
  border-radius: 50%;
  margin: 0 5px;
}
.graceful-vibes-latest-posts-slider .owl-dot.active span {
  background: #ff4d6d;
}

@media (max-width: 1200px) {
    .graceful-vibes-slider-section {
      margin-left: 20px;
      margin-right: 20px;
    }
}

/**
 * Favorite Categories Styles - Modern Design
 */
.favorite-categories-container {
    margin: 2.5rem 2.0rem;
    padding: 0 15px;
}

.favorite-categories-container.max-width-container {
    margin: 2.5rem auto;
}

.max-width-container {
    max-width: 1180px;
}

.favorite-categories-title {
    font-size: 28px;
    margin-bottom: 1rem;
}

.favorite-categories-header {
    margin-bottom: 0.5rem;
}

.favorite-categories-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0 30px;
}

/* Grid Layout */
.favorite-categories-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
}

/* Adjust grid based on number of categories */
.favorite-categories-grid.items-1 {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
}

.favorite-categories-grid.items-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 580px;
    margin: 0 auto;
}

.favorite-categories-grid.items-3 {
    grid-template-columns: repeat(3, 1fr);
}

.favorite-categories-grid.items-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .favorite-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .favorite-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .favorite-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .favorite-categories-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Card Styles */
.favorite-category-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
}

.favorite-category-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

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

.favorite-category-card {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.favorite-category-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.favorite-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.1) 100%);
}

.favorite-category-content {
    position: absolute;
    bottom: 160px;
    right: 20px;
    z-index: 10;
    transform: rotate(270deg);
    transform-origin: bottom right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    white-space: nowrap;
    width: 140px;
}

.favorite-category-count {
    font-size: 16px;
    font-weight: 400;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.favorite-category-posts-label {
    display: none;
}

.favorite-category-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Gradient Color Themes */
.favorite-category-item:nth-child(1) .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.80) 0%, rgba(236, 72, 153, 0.2) 100%);
}

.favorite-category-item:nth-child(2) .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.80) 0%, rgba(251, 146, 60, 0.2) 100%);
}

.favorite-category-item:nth-child(3) .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.80) 0%, rgba(239, 68, 68, 0.2) 100%);
}

.favorite-category-item:nth-child(4) .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.80) 0%, rgba(20, 184, 166, 0.2) 100%);
}

.favorite-category-item:nth-child(5) .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.80) 0%, rgba(59, 130, 246, 0.2) 100%);
}

/* Hover Effects for Each Card */
.favorite-category-item:nth-child(1):hover .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9) 0%, rgba(236, 72, 153, 0.3) 100%);
}

.favorite-category-item:nth-child(2):hover .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.9) 0%, rgba(251, 146, 60, 0.3) 100%);
}

.favorite-category-item:nth-child(3):hover .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(239, 68, 68, 0.3) 100%);
}

.favorite-category-item:nth-child(4):hover .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9) 0%, rgba(20, 184, 166, 0.3) 100%);
}

.favorite-category-item:nth-child(5):hover .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(59, 130, 246, 0.3) 100%);
}

/* Fallback for cards without background images */
.favorite-category-card:not(:has(.favorite-category-background)) .favorite-category-overlay {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.8) 0%, rgba(156, 163, 175, 0.2) 100%);
}


/* Grid Layout */
.favorite-categories-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Adjust grid based on number of categories */
.favorite-categories-grid.items-1 {
    max-width: 280px;
    margin: 0 auto;
}

.favorite-categories-grid.items-2 {
    max-width: 580px;
    margin: 0 auto;
}

.favorite-categories-grid.items-3 {
    max-width: 100%;
}

.favorite-categories-grid.items-4 {
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .favorite-categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .favorite-categories-grid .favorite-category-item {
        flex: none;
    }
    .favorite-categories-grid:hover .favorite-category-item {
        flex: none;
        
    }
    .favorite-categories-grid:hover .favorite-category-item:hover {
        flex: none;
        
    }
}

@media (max-width: 992px) {
    .favorite-categories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .favorite-categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .favorite-categories-grid {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Card Styles */
.favorite-category-item {
    transition: all 0.3s ease;
    flex: 1;
}

.favorite-categories-grid:hover .favorite-category-item {
    flex: 0.85;
}

.favorite-categories-grid:hover .favorite-category-item:hover {
    flex: 1.3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
