/*
Theme Name: Graceful Modern Blog
Theme URI: https://optimathemes.com/graceful-modern-blog-theme/
Author: Aslam
Author URI: http://optimathemes.com/
Description: Graceful Modern Blog is a free and versatile WordPress theme crafted for bloggers, creators, and storytellers. Ideal for niches like lifestyle, fashion, travel, beauty, food, fitness, health, tech, and news, it offers a clean, minimal, and modern design that keeps the focus on your content. The theme is fully responsive and Retina-ready, ensuring a seamless reading experience on all devices. Optimized for performance, accessibility, and SEO, Graceful Modern Blog is also WooCommerce compatible, translation-ready, and supports RTL languages. Whether you’re starting a personal blog or creating a professional online presence, this theme blends elegant design with powerful features to help your site grow with ease.
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-modern-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: #e8edf1;
    color: #000000 !important;
    font-weight: 700;    
}

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



.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: 'Mulish', sans-serif;
    font-size: 13px;
}

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

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

.blog article .post-header .post-meta a {
    font-family: 'Mulish', 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-modern-category-title {
    background: #e8edf1;
    color: #000000 !important;
    margin-bottom: 20px;
    display: inline-block;
    padding: 2px 40px 5px;
}

/* 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: #e8edf1;
}

#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: 8px 15px;
  margin: 0;
}

#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: 700;
  text-transform: uppercase;
}
#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 #e1e1e1;
}

.entry-header {
    border-bottom: 1px solid #e1e1e1;
}

.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 #cccccc;
}


.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: #f7f7f7;
}

#site-footer .graceful-widget h2 {
    padding: 3px 5px 2px;
    background: #e8edf1 !important;
    color: #000000 !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 {
    background: #f5f5f5;
    border: 1px solid #d3d3d3;
}

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

.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: 12px;
}

#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;
    text-align: center;
}


/**
 * Modern Post Slider
 */
/* === Gracemax Custom Carousel Styles === */
.gracemodern-carousel-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 0px 20px;
  position: relative;
  box-sizing: border-box;
}

.gracemodern-carousel .item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gracemodern-carousel .gracemodern-carousel-image {
  position: relative;
  overflow: hidden;
  height: 400px; /* Fixed height for all images */
}

.gracemodern-carousel .gracemodern-carousel-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

/* Text section */
.gracemodern-carousel-text {
  font-family: "Inter", sans-serif;
  padding-top: 1px; 
}
.gracemodern-carousel-category {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ff4d00;
  background: #fff1ea;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
.gracemodern-carousel-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}
.gracemodern-carousel-excerpt {
  font-size: 18px;
  color: #666;
}

/* Nav arrows - UPDATED FOR BIGGER ARROWS */
.gracemodern-carousel .owl-nav {
  position: absolute;
  bottom: -50px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.gracemodern-carousel .owl-nav button {
  background: none;
  border: none;
  pointer-events: all;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.8;
  padding: 0 !important;
}

.gracemodern-carousel .owl-nav button:hover {
  transform: scale(1.1);
  opacity: 1;
}

.gracemodern-carousel .owl-nav button svg {
  width: 36px;  /* Increased SVG size from 24px */
  height: 36px; /* Increased SVG size from 24px */
  fill: #ff4d00;
}

/* Pagination dots */
.gracemodern-carousel .owl-dots {
    display: none;
  position: absolute;
  bottom: -37px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.gracemodern-carousel .owl-dot span {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: #ccc;
  border-radius: 3px;
  transition: background 0.3s;
}
.gracemodern-carousel .owl-dot.active span {
  background: #ff4d00;
}

.gracemodern-carousel-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.gracemodern-carousel-title a:hover {
  color: #ff4d00;
}

/* Responsive */
@media (min-width: 1080px) {
    .gracemodern-carousel .owl-nav {
        bottom: 0px;
      left: unset;
      right: 30px;
      width: 46%;
    }
    .gracemodern-carousel .owl-dots {
      bottom: 14px;
      left: unset;
      right: 13%;

    }
}

@media (max-width: 768px) {
  .gracemodern-carousel .item {
    grid-template-columns: 1fr;
  }
  .gracemodern-carousel-title {
    font-size: 28px;
  }
  
  .gracemodern-carousel .gracemodern-carousel-image {
    height: 300px; /* Smaller height for mobile */
  }
  
  .gracemodern-carousel .owl-nav button svg {
    width: 30px; /* Slightly smaller on mobile */
    height: 30px;
  }
  .gracemodern-carousel-section {
      padding: 60px 20px;
    }
}

@media (max-width: 1080px) {
    .gracemodern-carousel-section {
      padding: 60px 20px;
    }
}


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

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

.favorite-categories-title {
    font-size: 28px;
}

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

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

/* Base grid layout */
.favorite-categories-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

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

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .favorite-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center single column on tablet */
    .favorite-categories-grid.items-1 {
        max-width: 300px;
        margin: 0 auto;
    }
}

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

.favorite-category-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.favorite-category-item:hover {
    transform: translateY(-5px);
}

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

.favorite-category-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

/* Grey background for when no image is set */
.favorite-category-image-container.no-image {
    background-color: #f2f2f2;
}

.favorite-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.favorite-category-label {
    position: absolute;
    bottom: 0px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    width: 100%;
    text-align: center;
}


/**
 * Modern Post Slider - New Card Design
 */

.gracefulmodern-modern-slider {
    background: #e8edf1;
    padding: 90px 0 60px;
    position: relative;
}

.gracefulmodern-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.gracefulmodern-slider-container .owl-stage {
    padding: 20px 0 40px;
}

/* Gradient Background Classes */
.gracefulmodern-gradient-red {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
}

.gracefulmodern-gradient-pink {
    background: linear-gradient(135deg, #ffa8a8 0%, #ff8a80 100%);
}

.gracefulmodern-gradient-orange {
    background: linear-gradient(135deg, #ff7f50 0%, #ff6347 100%);
}

.gracefulmodern-gradient-coral {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%);
}

/* Card Styles */
.gracefulmodern-slider-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 420px;
    display: flex;
    flex-direction: column;
}

.gracefulmodern-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gracefulmodern-card-image-container {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 15px;
    background: #e2e8f0;
}

.gracefulmodern-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.gracefulmodern-slider-card:hover .gracefulmodern-card-image {
    transform: scale(1.05);
}

.gracefulmodern-card-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #a0aec0;
    font-size: 14px;
    border-radius: 16px;
}

.gracefulmodern-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gracefulmodern-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #2d3748;
}

.gracefulmodern-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gracefulmodern-card-title a:hover {
    color: #667eea;
}

.gracefulmodern-card-date {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

/* Owl Carousel Navigation */
.gracefulmodern-cards-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    width: auto;
    pointer-events: none;
    display: flex;
    gap: 10px;
}

.gracefulmodern-cards-carousel .owl-nav button {
    position: relative;
    background: #ffffff !important;
    color: #4a5568 !important;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: all;
    outline: none;
}

.gracefulmodern-cards-carousel .owl-nav button.owl-prev {
    order: 1;
}

.gracefulmodern-cards-carousel .owl-nav button.owl-next {
    order: 2;
}

.gracefulmodern-cards-carousel .owl-nav button:hover {
    background: #f7fafc !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gracefulmodern-cards-carousel .owl-nav button span {
    font-size: 18px;
    font-weight: bold;
}

/* Owl Carousel Dots */
.gracefulmodern-cards-carousel .owl-dots {
    text-align: center;
    margin-top: 40px;
}

.gracefulmodern-cards-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    border: none;
}

.gracefulmodern-cards-carousel .owl-dot.active {
    background: #667eea !important;
    transform: scale(1.2);
}

.gracefulmodern-cards-carousel .owl-dot:hover {
    background: #a0aec0 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gracefulmodern-cards-carousel .owl-nav {
        top: -50px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .gracefulmodern-modern-slider {
        padding: 40px 0;
    }
    
    .gracefulmodern-slider-container {
        padding: 0 15px;
        padding-top: 60px;
    }
    
    .gracefulmodern-slider-card {
        margin: 0 10px;
        height: 350px;
    }
    
    .gracefulmodern-card-image-container {
        height: 220px;
        border-radius: 16px;
    }
    
    .gracefulmodern-card-placeholder {
        height: 220px;
        border-radius: 16px;
    }
    
    .gracefulmodern-cards-carousel .owl-nav {
        top: -50px;
        right: 10px;
    }
    
    .gracefulmodern-cards-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gracefulmodern-slider-container {
        padding-top: 50px;
    }
    
    .gracefulmodern-slider-card {
        height: 390px;
    }
    
    .gracefulmodern-card-image-container {
        height: 200px;
        border-radius: 16px;
    }
    
    .gracefulmodern-card-placeholder {
        height: 200px;
        border-radius: 16px;
    }
    
    .gracefulmodern-card-content {
        padding: 15px;
    }
    
    .gracefulmodern-card-title {
        font-size: 1rem;
    }
    
    .gracefulmodern-cards-carousel .owl-nav {
        top: -40px;
        right: 5px;
        gap: 8px;
    }
    
    .gracefulmodern-cards-carousel .owl-nav button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Screen reader only text */
.gracefulmodern-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#top-navigation {
    background: #e8edf1 !important;
}

/*--------------------------------------------------------------
| Trending Posts Section
--------------------------------------------------------------*/

.graceful-trending-posts-section {
    padding: 40px 0 60px;
    background: #ffffff;
    margin: 0;
}

.graceful-trending-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.graceful-trending-header {
    text-align: left;
    margin-bottom: 40px;
}

.graceful-trending-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.graceful-trending-subtitle {
    font-size: 1.125rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

.graceful-trending-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Featured post (left side) */
.graceful-trending-post-featured {
    grid-row: span 3;
}

.graceful-trending-post-featured .graceful-trending-post-image {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.graceful-trending-post-featured:hover .graceful-trending-post-image img {
    transform: scale(1.05);
}

.graceful-trending-engagement {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(86, 134, 255, 0.9);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.graceful-reading-time svg {
    width: 16px;
    height: 16px;
}

.graceful-trending-post-featured .graceful-trending-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.graceful-trending-post-featured .graceful-trending-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.graceful-trending-post-featured .graceful-trending-post-title a:hover {
    color: #5686ff;
}

/* Small posts (right side) */
.graceful-trending-post-small {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.graceful-trending-post-small .graceful-trending-post-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    order: 2; /* Move image to the right */
}

.graceful-trending-post-small .graceful-trending-post-content {
    flex: 1;
    order: 1; /* Keep content on the left */
}

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

.graceful-trending-post-small:hover .graceful-trending-post-image img {
    transform: scale(1.05);
}


.graceful-trending-post-small .graceful-trending-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.graceful-trending-post-small .graceful-trending-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.graceful-trending-post-small .graceful-trending-post-title a:hover {
    color: #5686ff;
}

/* Post meta styles */
.graceful-trending-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666666;
}

.graceful-trending-author,
.graceful-trending-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.graceful-trending-author svg,
.graceful-trending-date svg {
    width: 14px;
    height: 14px;
    color: #999999;
}

.graceful-trending-post-excerpt {
    color: #666666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Placeholder styles */
.graceful-trending-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 14px;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .graceful-trending-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .graceful-trending-post-featured {
        grid-row: span 1;
    }
    
    .graceful-trending-post-featured .graceful-trending-post-image {
        height: 250px;
    }
    
    .graceful-trending-title {
        font-size: 2rem;
    }
    
    .graceful-trending-post-featured .graceful-trending-post-title {
        font-size: 1.5rem;
    }
    
    .graceful-trending-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .graceful-trending-posts-section {
        padding: 40px 0;
    }
    
    .graceful-trending-post-small {
        flex-direction: column;
        gap: 12px;
    }
    
    .graceful-trending-post-small .graceful-trending-post-image {
        width: 100%;
        height: 180px;
    }
    
    .graceful-trending-title {
        font-size: 1.75rem;
    }
    
    .graceful-trending-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.graceful-small-image-box {
    background-color: #f2f2f2;
    background-position: center;
    background-size: cover;
    float: left;
    height: 60px;
    margin-right: 12px;
    width: 60px;
    border-radius: 30px;
}