/*
Theme Name: Graceful Blog Mag
Theme URI: https://optimathemes.com/graceful-blog-mag-theme/
Author: Aslam
Author URI: http://optimathemes.com/
Description: Graceful Blog Mag is a versatile and free WordPress theme, perfect for a wide range of blogs and websites, including fashion, lifestyle, travel, tech, health, fitness, beauty, food, news, and magazines. With its fully responsive and Retina-ready design, it offers a clean, modern, and minimalistic look that adapts beautifully to any device. Graceful BlogMag is WooCommerce compatible, supports Right-to-Left (RTL) languages, and is optimized for SEO, making it an ideal choice for both personal and professional sites.
Template: graceful
Version: 1.0.0
Requires at least: 5.3
Tested up to: 6.6
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-blog-mag
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
--------------------------------------------------------------*/
body {
    background-color: #ffffff;
}

.entry-header {
    height: 150px;
    border-bottom: none;
}

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

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

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

#main-navigation {
    background-color: transparent;
    border: none;
    text-align: center;
}

.site-menu-wrapper {
    margin: 0 auto;   
}

#top-navigation {
    background-color: #29b0d5;
    color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

aside .graceful-widget h2, 
.graceful-widget .widget-title {
    border: 1px solid #000000;
    font-weight: 600;
}

aside .graceful-widget h2::after {
    border-top: 8px solid #000000;
}

#graceful-post-slider {

}


#graceful-post-slider .owl-stage-outer:after {
    background-color: #f2f2f2;
}

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

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

.graceful-slider-title {
    width: 460px;
    word-wrap: break-word;
}

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

.site-images {
    min-height: 245px;
    background: #f2f2f2;
}

#site-footer {
    background: #f7f7f7;
}

#site-footer .graceful-widget .widget-title {
    border-radius: 20px;
    border: 1px solid #000000;
    font-weight: 600;
    background: #ffffff;
    color: #030303;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 20px;
    margin-bottom: 20px;
    overflow: visible;
    padding: 7px 5px 5px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

#site-footer .graceful-widget .widget-title::after {
    border-top: 8px solid #b9ad94;
}

.footer-widgets {
    border-bottom: 1px solid #a19376;    
}

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

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

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

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

#top-navigation {
  text-align: center;
  box-shadow: 0px 1px 5px rgba(0,0,0, 0.1);
  border-bottom: 1px solid #e4e4e4;
}

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

#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;
  color: #ffffff;
}

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

#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 .sub-menu {
  position: absolute;
  left: -999em;
  z-index: 1101;
  width: 170px;
  text-align: left;
  border: 1px solid #e4e4e4;
  border-width: 1px;
  opacity: 0;
}

#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 a {
  border-bottom-style: solid;
  border-bottom-width: 1px; 
}

#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 li a {
  font-size: 11px;
  line-height: 40px;
  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;
}

.post-categories {
    background: #f2f2f2;
    border: 1px solid #dddddd;
}

.wp-block-search__button {
    background: #f2f2f2;
    border: 1px solid #dddddd;
}

#main-navigation #searchform #s {
    border: 1px solid #bdb29b;
}

#main-navigation #searchform #searchsubmit, .close-graceful-search {
    background: #f2f2f2;
    border: 1px solid #dddddd;
}


#graceful-post-slider {
    padding-bottom: 40px;
    margin-top: 40px;
}

.widget_categories > ul > li {
    border-bottom: 1px solid #f2f2f2;
}

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

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


/*--------------------------------------------------------------
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: 14px !important;
    }
}


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


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

}

@media screen and (min-width: 1180px) {
    .main-content {
        padding-left: 0;
        padding-right: 0;
    }
}


/*--------------------------------------------------------------
Latest Posts Ticker
--------------------------------------------------------------*/
.graceful-popular {
    margin-top: 40px;
    margin-bottom: 10px;
}

.graceful-popular h4 {
    
    color: #030303;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 20px;
    overflow: visible;
    padding: 5px 5px 5px 0px;
    position: relative;
    text-transform: uppercase;
    display: inline-block;
    clear: both;
}


.trending-container {
    display: flex;
    align-items: center;
}

.blinking-dot {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.graceful-popular-posts-ticker {
    background: #fff;
    padding: 0;
}

.graceful-popular-posts-ticker .item {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 0;
}

.graceful-popular-posts-ticker .item a {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.graceful-popular-posts-ticker .post-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.graceful-popular-posts-ticker .post-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    margin-right: 15px;
}

.graceful-popular-posts-ticker .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.graceful-popular-posts-ticker .post-thumbnail .no-thumbnail {
    width: 100%;
    height: 100%;
    background-color: #ddd; 
}

.graceful-popular-posts-ticker .post-details {
    display: flex;
    align-items: center;
}

.graceful-popular-posts-ticker .post-title {
    font-size: 14px;
    line-height: 22px !important;
    margin: 0;
    color: #333;
    display: inline-block;
    max-height: 100px;
    overflow: hidden;
    padding: 3px 10px 0 0;
    font-family: 'Lato', sans-serif;
}

.graceful-popular-posts-ticker .owl-nav {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    display: none;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Allows clicks to pass through empty space */
}

.graceful-popular-posts-ticker .owl-nav button {
    background: none !important;
    border: none;
    font-size: 60px !important; /* Increase the size of the arrows */
    pointer-events: all;
    color: #777 !important; /* Change to your preferred color */
    cursor: pointer;
    padding: 10px; /* Add padding to increase clickable area */
}

.graceful-popular-posts-ticker .owl-nav button:hover {
    color: #000 !important; /* Optional: change color on hover */
}

.graceful-popular-posts-ticker .owl-nav .owl-prev {
    position: absolute;
    left: 0px; 
}

.graceful-popular-posts-ticker .owl-nav .owl-next {
    position: absolute;
    right: 0px; 
}


.graceful-popular-posts-ticker .post-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.graceful-popular-posts-ticker .post-date {
    font-size: 14px;
    color: #6f6f6f;
    margin-bottom: 0;
}

.graceful-popular-posts-ticker .post-item {
    display: flex;
    align-items: flex-start;
}

.graceful-popular-posts-ticker .post-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4px 0 0;
}



/*--------------------------------------------------------------
Slider Customization
--------------------------------------------------------------*/

#graceful-post-slider .owl-nav {
   align-items: unset;
   background-color: unset;
   height: unset;
   justify-content: unset;
   margin: unset;
   max-width: unset;
   text-align: unset;
   width: unset;
}
 #graceful-post-slider .owl-nav button {
   display: unset;
}
 #graceful-post-slider .owl-nav button:focus {
   box-shadow: unset;
   outline: unset;
}
 #graceful-post-slider .owl-nav [class*=owl-]:hover {
   background: unset;
}
 #graceful-post-slider .owl-dots {
   display: unset;
}
 #graceful-post-slider .owl-stage-outer:after {
   background-color: unset;
   bottom: unset;
   content: unset;
   display: unset;
   height: unset;
   left: unset;
   position: unset;
   transform: unset;
   width: unset;
   z-index: unset;
}
 #graceful-post-slider .owl-next {
   border-radius: unset;
   margin-left: unset;
   margin-top: unset;
   padding-left: unset;
   position: unset;
}
 #graceful-post-slider .owl-next span {
   color: unset;
   font-size: unset;
}
 #graceful-post-slider .owl-next::after {
   background: unset;
   border-radius: unset;
   content: unset;
   height: unset;
   position: unset;
   right: unset;
   top: unset;
   width: unset;
}
 #graceful-post-slider .owl-prev {
   border-radius: unset;
   margin-right: unset;
   margin-top: unset;
   padding-right: unset;
   position: unset;
}
 #graceful-post-slider .owl-prev span {
   color: unset;
   font-size: unset;
}
 #graceful-post-slider .owl-prev::after {
   background: unset;
   border-radius: unset;
   content: unset;
   height: unset;
   position: unset;
   right: unset;
   top: unset;
   width: unset;
}




#graceful-post-slider {
    border-radius: 20px;
}

.site-images {
    border-radius: 20px;
}

.owl-carousel .owl-stage-outer {
    border-radius: 20px;
}

#graceful-post-slider {
    padding: 0 4px !important;
}


#graceful-post-slider .slide-item {
    height: 480px;
}

.navigation-search-button {
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    position: relative;
}

.main-navigation-search {
    top: 7px;
}

.navigation-search-button i {
    color: #ffffff !important;
}

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

.post-header-inner {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.graceful-small-image-box {
    border-radius: 10px;
}

aside .graceful-widget h2 {
    border-radius: 20px;
}

.continue-read a {
    background: #5960ff;
    border-radius: 20px;
    color: #ffffff !important;
    text-decoration: none;
}



#graceful-post-slider {
   padding-bottom: 15px;
}
 #graceful-post-slider .slider-item:first-child {
   display: block;
}
 #graceful-post-slider .slide-item {
   background-size: cover;
   background-position: center;
}

#graceful-post-slider .owl-nav {
    position: absolute;
    top: 44%;
    left: 0;
    width: 100%;
    display: block;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; 
}

#graceful-post-slider .owl-nav button {
    background: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 60px !important; 
    pointer-events: all;
    color: #777 !important; 
    cursor: pointer;
    padding: 6px 8px 15px 10px !important;
    border-radius: 7px;
}

#graceful-post-slider .owl-nav button:hover {
    color: #000 !important; 
}

#graceful-post-slider .owl-nav [class*=owl-]:hover {
       background: rgba(255, 255, 255, 0.7);
}

#graceful-post-slider .owl-nav .owl-prev {
    position: absolute;
    left: 10px; 
}

#graceful-post-slider .owl-nav .owl-next {
    position: absolute;
    right: 10px; 
}

#graceful-post-slider .owl-dots {
    margin-top: -32px;
    position: relative;
}

.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
    background: #fbfbfb;
}


 #graceful-post-slider .graceful-wrap-inner {
   vertical-align: bottom;
}
 #graceful-post-slider.wrapped-content img {
   width: 100%;
}
 #graceful-post-slider.wrapped-content .slider-item-bg {
   height: 540px;
}
 .slider-item {
   display: none;
   position: relative;
}
 .slider-item-bg {
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   height: 450px;
}
 .graceful-slider-info {
   display: inline-block;
   max-width: 840px;
   padding: 40px;
}
 .slider-categories {
   font-size: 13px;
   font-weight: bold;
   letter-spacing: 3px;
   margin-bottom: 16px;
   text-transform: uppercase;
}
 .graceful-slider-title {
   font-size: 36px;
   letter-spacing: 1px;
   line-height: 44px;
   margin-bottom: 25px;
}
 .graceful-slider-read-more a {
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.8);
   cursor: pointer;
   display: inline-block;
   font-size: 13px;
   font-weight: bold;
   letter-spacing: 2px;
   line-height: 30px;
   margin-bottom: 30px;
   padding: 0 25px;
   text-transform: uppercase;
}

#graceful-post-slider .owl-dots {
   display: block !important;
   padding: 0 !important;
}

@media screen and (max-width: 480px) {
    #graceful-post-slider .owl-nav {
        display: none;
    }
    .graceful-slider-info {
        padding: 10px;
    }
    .graceful-slider-title {
        font-size: 24px;
        letter-spacing: 1px;
        line-height: 31px;
        margin-bottom: 25px;
    }
    #graceful-post-slider .slide-item {
        height: 240px;
    }
}


@media screen and (max-width: 1200px) {
    #graceful-post-slider.wrapped-content {
        padding-bottom: 12px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .graceful-popular.wrapped-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* Shine Effect on post images */
.site-images a {
    /*position: relative;*/
}
.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%;
    }
}