/*
Theme Name: Graceful Haven
Theme URI: https://optimathemes.com/graceful-haven-theme/
Author: Aslam
Author URI: http://optimathemes.com/
Description: Graceful Haven is a free, multi-purpose WordPress blog theme designed for versatility and elegance. Whether you're creating a lifestyle, fashion, travel, tech, health, fitness, beauty, food, news, magazine, personal, or professional blog, Graceful Haven adapts seamlessly to your needs. With a fully responsive and retina-ready design, your website will look stunning on any device. The theme boasts a clean, modern, and minimal layout, ensuring a distraction-free reading experience. Graceful Haven is WooCommerce-compatible, allowing you to set up an online store effortlessly. It also supports RTL (Right-To-Left) languages and is SEO-optimized for better search engine visibility. You can create a stylish and functional website or blog with Graceful Haven.
Template: graceful
Version: 1.0.1
Requires at least: 5.3
Tested up to: 6.7
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-haven
Tags: blog, one-column, two-columns, three-columns, block-patterns, 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 {
    line-height: unset;
}

.entry-header {
    height: 150px;
}

.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: #ffffff;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

#top-navigation {
    background-color: #000000;
    color: #ffffff;
    border-bottom: 1px solid #d9d1c0;
}

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

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


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

#site-footer {
    background: #f1f1f1;
}

#site-footer .graceful-widget .widget-title {
    background: #fafafa !important;
    border: 1px solid #333333 !important;
}

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

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

#site-menu {
    width: auto;
    /*text-align: center;*/
}

#site-menu li a {
    font-weight: 500;
    border-right: 1px solid #333333;
}

#site-menu li:last-child a {
    padding-right: 16px;
}

#site-menu li:first-child a {
    padding-left: 16px;
    border-left: 1px solid #333333;
}

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

@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;
  background: #111111;
}

#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 a:hover {
    background: #333333;
}

#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: #fafafa;
    border: 1px solid #333333;
}

.wp-block-search__button {
    background: #f4f1ec;
    border: 1px solid #d9d1c0;
}

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

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

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

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

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

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

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


@media screen and (max-width: 480px) {
    #featured-boxes .featured-box {
        width: 100%;
        margin-bottom: 34px;
    }
    #featured-boxes {
        padding-bottom: 0px !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;
    }
}


/*--------------------------------------------------------------
Latest Posts Ticker
--------------------------------------------------------------*/
.graceful-ticker-wrap {
    border-top: 1px solid #aaaaaa; 
    margin-top: 40px;
}

.graceful-ticker-wrap h2 {
    font-size: 22px;
    margin: 10px 4px;
}

.graceful-latest-posts-ticker {
    background: transparent;
    padding: 0;
    margin-top: 18px;
    position: relative;
}

.graceful-latest-posts-ticker .item {
    padding: 0 10px;
}

.graceful-latest-posts-ticker .post-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.graceful-latest-posts-ticker .post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.graceful-latest-posts-ticker .post-thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
}

.graceful-latest-posts-ticker .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.graceful-latest-posts-ticker .post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.graceful-latest-posts-ticker .post-thumbnail .no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

.graceful-latest-posts-ticker .post-details {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1;
}

.graceful-latest-posts-ticker .post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.graceful-latest-posts-ticker .post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

/* Position navigation buttons in the top right corner */
.graceful-latest-posts-ticker .owl-nav {
    position: absolute;
    top: -60px; /* Adjust this value to position higher or lower */
    right: 0;
    display: flex;
    gap: 8px; /* Space between the buttons */
    z-index: 10;
}

.graceful-latest-posts-ticker .owl-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff !important;
    border-radius: 50% !important;
    border: 1px solid #333 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.graceful-latest-posts-ticker .owl-nav button:hover {
    background: #f5f5f5 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #333333 !important;
}

.graceful-latest-posts-ticker .owl-nav button img {
    width: 20px;
    height: 20px;
}

.graceful-latest-posts-ticker .fa-angle-left {
    font-size: 24px !important;
}

.graceful-latest-posts-ticker .fa-angle-right {
    font-size: 24px !important;
}

/* Custom styles for a more havenrn look matching image 2 */
.graceful-latest-posts-ticker .item a {
    background: #fff;
    border: none;
}

/* Add heading style for each post card like in image 2 */
.item:nth-child(1) .post-details:before,
.item:nth-child(2) .post-details:before,
.item:nth-child(3) .post-details:before {
    content: attr(data-heading);
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
}


/* Media queries for different screen sizes */
@media (max-width: 767px) {
    .graceful-latest-posts-ticker .owl-nav {
        top: -45px;
        right: 10px;
    }
}

.continue-read a {
    text-decoration: none;
    border: 1px solid;
    border-radius: 50px;
}

#featured-boxes h4 {
    display: block;
}

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

#featured-boxes .graceful-wrap-inner {
    vertical-align: bottom;
}
