/*
Theme Name: Graceful Opal Blog
Theme URI: https://optimathemes.com/graceful-opal-blog-theme/
Author: Aslam
Author URI: http://optimathemes.com/
Description: Graceful Opal Blog is a clean, modern, and versatile free WordPress theme designed for bloggers, creators, and professionals. Perfect for lifestyle, fashion, travel, tech, health, fitness, beauty, food, news, magazine, and personal blogs, it adapts seamlessly to a wide range of content. Built with a minimal and elegant design, Graceful Opal Blog theme is fully responsive and Retina-ready, ensuring a smooth and visually appealing experience across all devices. The theme is lightweight, SEO-friendly, and optimized for performance to help improve search engine visibility. This theme is also WooCommerce compatible, allowing you to easily create an online store, and includes RTL (Right-to-Left) language support, making it suitable for global audiences. With its user-friendly design and flexible layout options, it’s an ideal choice for building a professional and engaging blog.
Template: graceful
Version: 1.2.4
Requires at least: 5.3
Tested up to: 6.9
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-opal-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
--------------------------------------------------------------*/

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

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

.post-categories {
    background: #000000 !important;
    border: 0;
    padding: 0 10px !important;
}

.post-categories a {
    color: #ffffff !important;
}

.graceful-widget h2 {
    background: transparent !important;
    color: #111111 !important;
}

#site-footer .graceful-widget h2 {
    color: #111111 !important;
    font-size: 18px !important;
    line-height: 22px;
}

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

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

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

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

#main-navigation i {
    color: #ffffff;
}

aside .graceful-widget h2, 
.graceful-widget .widget-title {
    background: transparent !important;
    border: none;
    color: #111111 !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 0 12px 0;
    text-align: left;
    text-transform: none;
    margin-bottom: 18px;
}

aside .graceful-widget h2::before,
.graceful-widget .widget-title::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 13px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='13' viewBox='0 0 14 13'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0H4.53968L8.35714 6.5L4.53968 13H0L3.81746 6.5L0 0ZM7.5 0H10.2857L14 6.5L10.2857 13H7.5L11.2143 6.5L7.5 0Z' fill='%23111111'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

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

.post-categories {
    background: #f3f3f3;
    border: 1px solid #c3c4c7;
    display: inline-block;
    margin-bottom: 10px;
    padding: 0 12px;
}

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

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

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

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

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

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

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

@media screen and (max-width: 768px) {
    .main-navigation-search {
        right: 20px;
    }
}

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

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

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

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

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

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

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

#main-navigation {
    background: #000000;
}

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

#main-navigation a:hover, #main-navigation i:hover {
    color: #dddddd;
}

#site-menu > li > a:hover{
    color: #dddddd;
}

#site-menu > li > a {
    color: #ffffff;
}

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

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-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 #dddddd;
}

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

    .main-navigation-search {
        right: 35px;
    }
    #main-navigation .navigation-socials {
        right: 75px;
    }
}

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


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

.left-menu-icon span {
    background-color: #ffffff;
}

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

#responsive-menu li a {
    color: #ffffff;
}

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

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

@media screen and (max-width: 480px) {
    .main-navigation-search {
        right: 20px;
    }
}

.tig-search-close-DEAD {
    background: #000000;
}

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

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


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

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

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

#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: 0px !important;
    }
}


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


/* Line animation effect for featured boxes */

:root {
    --featured-primary: #000000; /* change this to match your theme */
}


.featured-box img {
    width: 100%;
    display: block;
}

.featured-box a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
}

/* inner border */
.featured-box a::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 2px solid #fff;
    z-index: 1;
}

/* animation wrapper */
.hover-animation {
    position: absolute;
    inset: 10px;
    z-index: 2;
    overflow: hidden;
}

/* horizontal lines */
.hover-animation::before,
.hover-animation::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--featured-primary);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-animation::before {
    top: 0;
    transform: translateX(-105%);
}

.hover-animation::after {
    bottom: 0;
    transform: translateX(105%);
}

/* vertical lines */
.hover-animation span::before,
.hover-animation span::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--featured-primary);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-animation span::before {
    left: 0;
    transform: translateY(105%);
}

.hover-animation span::after {
    right: 0;
    transform: translateY(-105%);
}

/* animate on hover */
.featured-box:hover .hover-animation::before,
.featured-box:hover .hover-animation::after,
.featured-box:hover .hover-animation span::before,
.featured-box:hover .hover-animation span::after {
    transform: translate(0, 0);
}

/* Title styling */
.graceful-wrap-inner h4 {
    position: relative;
    z-index: 3;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 4px;
}



/*--------------------------------------------------------------
# Graceful Opal Homepage Slider
--------------------------------------------------------------*/

.graceful-opal-slider-wrapper {
    padding: 0;
    margin-bottom: 60px;
    width: 100%;
    position: relative;
}

.graceful-opal-slide-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.graceful-opal-slide-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.graceful-opal-slide-dots-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: 100%;
    height: 85%;
    background-image: url('assets/images/dots.png');
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 0;
    transition: transform 0.8s ease-out;
}

.owl-item.active .graceful-opal-slide-dots-pattern {
    transform: translate(-50%, -50%); /* End position slightly higher */
}

.graceful-opal-slide-content-column {
    width: 50%;
    text-align: left;
    position: relative;
    z-index: 1;
}

.graceful-opal-slide-image-column {
    width: 50%;
    position: relative;
    z-index: 1;
}

.graceful-opal-slide-image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.7s ease-out, opacity 0.6s ease-out;
}

.owl-item.active .graceful-opal-slide-image-column img {
    transform: translateY(0);
    opacity: 1;
}

.graceful-opal-slide-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.graceful-opal-slide-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    margin-right: -50px;
}

.graceful-opal-slide-title a {
    color: #111;
    text-decoration: none;
}

.graceful-opal-slide-read-more {
    margin-top: 30px;
}

.graceful-opal-slide-button {
    background-color: #222;
    color: #ffffff !important;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s;
}

.graceful-opal-slide-button:hover {
    background-color: #444;
}

/* Owl Carousel Dots */
.graceful-opal-slider.owl-theme .owl-dots {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    line-height: 1;
}

.graceful-opal-slider.owl-theme .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.graceful-opal-slider.owl-theme .owl-dots .owl-dot.active {
    background-color: #333;
}

.graceful-opal-slider.owl-theme .owl-nav {
    display: none;
}

.graceful-opal-slider.owl-theme .owl-dots .owl-dot span {
    height: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .graceful-opal-slider-wrapper {
        padding: 20px;
    }

    .graceful-opal-slide-item {
        padding: 40px 0;
    }

    .graceful-opal-slide-container {
        flex-direction: column;
    }

    .graceful-opal-slide-content-column,
    .graceful-opal-slide-image-column {
        width: 100%;
        max-width: 500px;
    }

    .graceful-opal-slide-content-column {
        text-align: center;
        order: 2;
    }

    .graceful-opal-slide-image-column {
        order: 1;
        margin-bottom: 30px;
    }

    .graceful-opal-slide-title {
        font-size: 36px;
        margin-right: 0;
    }
}

.graceful-opal-category-title {
    margin-bottom: 20px;
    margin-top: 1px;
    padding: 10px 10px;
    text-align: center;
    font-size: 34px;
    background: #d7d7d7;
    font-weight: normal;
}


#main-navigation li.current-menu-item > a {
    color: #ffffff;
}


/*--------------------------------------------------------------
# Blog Grid Listing (2-column card layout)
--------------------------------------------------------------*/

/* Override parent's content-column to use a 2-col grid */
.ggb-grid-listing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
}

.ggb-grid-item {
    margin-bottom: 0 !important; /* override parent's li margin */
    padding-bottom: 30px;
}

/* Vertical divider — right border on left-column items */
.ggb-grid-item:nth-child(odd) {
    border-right: 1px solid #e0e0e0;
    padding-right: 30px;
}

/* Offset the right column to align with the gap */
.ggb-grid-item:nth-child(even) {
    padding-left: 30px;
}

/* Horizontal divider — bottom border on all items */
.ggb-grid-item {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Add top padding to items from the second row onwards */
.ggb-grid-item:nth-child(n+3) {
    padding-top: 40px;
}

/* Remove bottom border from the last two items (last row) */
.ggb-grid-item:nth-last-child(-n+2) {
    border-bottom: none;
}

/* Card */
.ggb-card {
    background: #fff;
    border: none;
    padding: 0;
}

/* Image wrapper — relative so the category badge can be absolute */
.ggb-card-image {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.ggb-card-image a {
    display: block;
}

.ggb-card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.ggb-card:hover .ggb-card-image img {
    transform: scale(1.03);
}

/* Category badge overlaid on image */
.ggb-card-category {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.ggb-card-category a {
    display: inline-block;
    background: #000000;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 5px 10px;
    line-height: 1.4;
}

.ggb-card-category a:hover {
    background: #333333;
    color: #ffffff !important;
}

/* Placeholder when no featured image */
.ggb-card-image--placeholder {
    background-color: #e8e8e8;
}

.ggb-placeholder-link {
    display: block;
    width: 100%;
    height: 260px;
}

@media screen and (min-width: 641px) and (max-width: 900px) {
    .ggb-placeholder-link {
        height: 200px;
    }
}

@media screen and (max-width: 640px) {
    .ggb-placeholder-link {
        height: 220px;
    }
}

/* Card body */
.ggb-card-body {
    padding: 16px 0 0;
}

/* Title */
.ggb-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    line-height: 1.45;
    margin: 0 0 10px;
    clear: none;
}

.ggb-card-title a {
    color: #111111;
    text-decoration: none !important;
}

.ggb-card-title a:hover {
    color: #444444;
}

.ggb-card-title strong {
    font-weight: 700;
}

.ggb-card-title .ggb-title-rest {
    font-weight: 400;
}

/* Meta row */
.ggb-card-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #777777;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.ggb-meta-by {
    color: #777777;
}

.ggb-meta-author a {
    color: #777777 !important;
    text-decoration: none !important;
    font-weight: 400;
}

.ggb-meta-author a:hover {
    color: #111111 !important;
}

.ggb-meta-sep {
    color: #aaaaaa;
    margin: 0 2px;
}

.ggb-meta-date {
    color: #777777;
}

/* Responsive — single column on small screens */
@media screen and (max-width: 640px) {
    .ggb-grid-listing {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ggb-grid-item:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }

    .ggb-grid-item:nth-child(even) {
        padding-left: 0;
    }

    .ggb-grid-item:nth-child(n+3) {
        padding-top: 0;
    }

    /* On single column, only last item has no border */
    .ggb-grid-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 30px;
    }

    .ggb-grid-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .ggb-card-image img {
        height: 220px;
    }
}

@media screen and (min-width: 641px) and (max-width: 900px) {
    .ggb-card-image img {
        height: 200px;
    }

    .ggb-card-title {
        font-size: 16px;
    }
}


/*--------------------------------------------------------------
# Modern Single Post Layout
--------------------------------------------------------------*/

/* Full-width header wrapper */
.ggb-modern-post-header-wrap {
    width: 100%;
    padding-bottom: 0;
}

/* Title — large, bold first words + normal rest, uppercase */
.ggb-modern-header .ggb-modern-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: #111111;
}

.ggb-modern-header .ggb-modern-title strong {
    font-weight: 800;
}

.ggb-modern-header .ggb-modern-title .ggb-modern-title-rest {
    font-weight: 400;
}

/* Meta bar — no borders */
.ggb-modern-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    margin-bottom: 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666666;
}

.ggb-modern-meta-left {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ggb-modern-meta-by {
    color: #666666;
}

.ggb-modern-meta-author a {
    color: #666666 !important;
    text-decoration: none !important;
    font-weight: 600;
}

.ggb-modern-meta-author a:hover {
    color: #111111 !important;
}

.ggb-modern-meta-sep {
    color: #aaaaaa;
}

.ggb-modern-meta-date {
    color: #666666;
}

.ggb-modern-meta-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
}

.ggb-modern-meta-right .fa {
    font-size: 13px;
    color: #888888;
}

/* Featured image — full width, sharp corners */
.ggb-modern-header .ggb-modern-image {
    margin-bottom: 0;
}

.ggb-modern-header .ggb-modern-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

/* Gap between full-width image and the content+sidebar area */
.ggb-modern-post-header-wrap ~ .sidebar-right-wrap,
.ggb-modern-post-header-wrap ~ .sidebar-left-wrap,
.ggb-modern-post-header-wrap ~ .content-wrap {
    margin-top: 40px;
}

/* Post content — narrower left-aligned column */
.ggb-modern-post .ggb-modern-content {
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
    padding: 0 0 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ggb-modern-header .ggb-modern-title {
        font-size: 28px;
    }

    .ggb-modern-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ggb-modern-post .ggb-modern-content {
        max-width: 100%;
    }
}


/*================================================================
  THE INTIMACY GUIDE — CUSTOM DESIGN OVERHAUL
  Added on top of the base Graceful Opal Blog theme.
  Palette: warm plum + terracotta + cream, editorial/wellness tone.
================================================================*/

/* --- Fonts: elegant serif for display, clean sans for body --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --tig-plum: #222222;
    --tig-plum-deep: #2D2B2A;
    --tig-nav-bg: #FFFFFF;
    --tig-white: #FFFFFF;
    --tig-footer: #2D2B2A;
    --tig-terracotta: #C78673;
    --tig-terracotta-soft: #dba896;
    --tig-blush: #E6D4CC;
    --tig-cream: #FAF8F5;
    --tig-gold: #b98a4e;
    --tig-ink: #222222;
    --tig-grey: #777777;
    --tig-line: #e7dcd4;
    --tig-font-display: 'Playfair Display', Georgia, serif;
    --tig-font-body: 'Inter', 'Open Sans', sans-serif;
    --featured-primary: var(--tig-terracotta);
}

body {
    background: var(--tig-cream);
    color: var(--tig-ink);
    font-family: var(--tig-font-body);
}

::selection {
    background: var(--tig-terracotta-soft);
    color: var(--tig-plum-deep);
}

a { transition: color 0.2s ease; }

.site-title,
#site-header .site-title a {
    font-family: var(--tig-font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    color: var(--tig-plum) !important;
}

.site-description {
    font-family: var(--tig-font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11px !important;
    color: var(--tig-terracotta) !important;
}

#site-header {
    background: var(--tig-cream);
    padding-top: 36px;
    padding-bottom: 24px;
}

#top-navigation {
    background: var(--tig-plum-deep) !important;
    border-bottom: none !important;
    box-shadow: none;
}

#top-menu li a,
#top-menu ul li a {
    color: #f1e6df !important;
    font-family: var(--tig-font-body);
    letter-spacing: 1.5px;
    font-weight: 500;
}

#top-menu li a:hover {
    color: var(--tig-terracotta-soft) !important;
}

#top-menu .sub-menu {
    background: var(--tig-plum-deep) !important;
    border-color: rgba(255,255,255,0.1);
}

#main-navigation {
    background: var(--tig-nav-bg) !important;
    padding: 4px 0;
    border-bottom: 1px solid var(--tig-line);
}

#site-menu > li > a {
    font-family: var(--tig-font-body) !important;
    font-weight: 600;
    letter-spacing: 1.2px;
    font-size: 12.5px;
    color: var(--tig-plum) !important;
    padding: 16px 14px;
}

#site-menu > li > a:hover,
#main-navigation li.current-menu-item > a {
    color: var(--tig-terracotta) !important;
}

#main-navigation i,
#main-navigation a:hover, #main-navigation i:hover {
    color: var(--tig-terracotta) !important;
}

#main-navigation #searchform #s {
    border: 1px solid var(--tig-line) !important;
    background: #fff;
    color: var(--tig-ink);
}

.tig-mobile-nav-panel,
#responsive-menu {
    background: var(--tig-nav-bg);
}

#responsive-menu li a {
    color: var(--tig-plum) !important;
    font-family: var(--tig-font-body);
}

#responsive-menu .sub-menu > li {
    background: var(--tig-blush) !important;
}

.post-categories,
.ggb-card-category a {
    background: var(--tig-terracotta) !important;
    border-color: var(--tig-terracotta) !important;
    color: #fff !important;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ggb-card-category a:hover {
    background: var(--tig-plum) !important;
}

aside .graceful-widget h2,
.graceful-widget .widget-title {
    font-family: var(--tig-font-display) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: var(--tig-plum) !important;
}

aside .graceful-widget h2::before,
.graceful-widget .widget-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='13' viewBox='0 0 14 13'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0H4.53968L8.35714 6.5L4.53968 13H0L3.81746 6.5L0 0ZM7.5 0H10.2857L14 6.5L10.2857 13H7.5L11.2143 6.5L7.5 0Z' fill='%23c4694f'/%3E%3C/svg%3E");
}

.blog .post-title,
.ggb-card-title {
    font-family: var(--tig-font-display) !important;
    font-weight: 500 !important;
    color: var(--tig-plum) !important;
}

.ggb-card-title a:hover,
.blog .post-title a:hover {
    color: var(--tig-terracotta) !important;
}

.ggb-card-image img {
    border-radius: 6px 6px 0 0;
}

.ggb-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(34,34,34,0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ggb-card:hover {
    box-shadow: 0 10px 24px rgba(34,34,34,0.12);
    transform: translateY(-3px);
}

.ggb-card-body {
    padding: 18px 18px 4px !important;
}

.ggb-grid-item {
    border-color: var(--tig-line) !important;
}

.ggb-modern-header .ggb-modern-title {
    font-family: var(--tig-font-display) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: var(--tig-plum) !important;
    font-size: 44px !important;
}

.ggb-modern-meta-author a {
    color: var(--tig-terracotta) !important;
}

.ggb-modern-meta-right .fa {
    color: var(--tig-terracotta) !important;
}

.ggb-modern-header .ggb-modern-image img,
.site-images img {
    border-radius: 6px;
}

.post-page-content {
    font-family: var(--tig-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--tig-ink);
}

.post-page-content h2,
.post-page-content h3 {
    font-family: var(--tig-font-display);
    color: var(--tig-plum);
    font-weight: 500;
}

.post-page-content a {
    color: var(--tig-terracotta);
    text-decoration: underline;
    text-decoration-color: var(--tig-terracotta-soft);
}

.post-page-content a:hover {
    color: var(--tig-plum);
}

.post-page-content blockquote {
    border-left: 3px solid var(--tig-terracotta);
    background: var(--tig-blush);
    padding: 16px 24px;
    font-style: italic;
    color: var(--tig-plum);
}

input[type="submit"],
button,
.button,
.wp-block-button__link {
    background: var(--tig-terracotta) !important;
    border: none !important;
    color: #fff !important;
    font-family: var(--tig-font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    padding: 12px 26px !important;
    transition: background 0.2s ease;
}

input[type="submit"]:hover,
button:hover,
.button:hover,
.wp-block-button__link:hover {
    background: var(--tig-plum) !important;
}

#site-footer {
    background: var(--tig-plum-deep);
    border-top: none !important;
    color: #e8dcd3;
    padding-top: 50px;
}

#site-footer .graceful-widget h2 {
    color: #E6D4CC !important;
    font-family: var(--tig-font-display) !important;
    font-weight: 500 !important;
}

#site-footer a {
    color: #d8c4b8;
}

#site-footer a:hover {
    color: var(--tig-terracotta-soft);
}

.graceful-opal-slide-title {
    font-family: var(--tig-font-display) !important;
    font-weight: 500 !important;
    color: var(--tig-plum) !important;
}

.graceful-opal-category-title {
    background: var(--tig-blush) !important;
    color: var(--tig-plum) !important;
    font-family: var(--tig-font-display);
    font-weight: 500;
}

#featured-boxes h4 {
    font-family: var(--tig-font-body);
    background-color: rgba(34,34,34,0.65) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--tig-terracotta);
    outline-offset: 2px;
}


/*================================================================
  THE INTIMACY GUIDE — COMBINED HEADER (logo + nav in one bar)
================================================================*/

#main-navigation {
    padding: 0 !important;
}

.tig-nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 16px 20px;
    position: relative;
}

.tig-nav-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 30px;
}

.tig-nav-branding img {
    max-height: 68px;
    width: auto;
    display: block;
}

.tig-nav-site-title {
    font-family: var(--tig-font-display, 'Playfair Display', Georgia, serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--tig-plum) !important;
    text-decoration: none;
}

.tig-nav-menu-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* Remove the old stacked spacing since everything's inline now */
.tig-nav-menu-group .site-menu-wrapper,
.tig-nav-menu-group nav {
    display: flex;
    align-items: center;
}

#site-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .site-menu-wrapper {
        display: none !important;
    }
    .tig-nav-menu-group {
        justify-content: flex-end;
        flex: 1;
    }
}

@media screen and (min-width: 769px) {
    .tig-hamburger-btn,
    .tig-mobile-nav-panel {
        display: none !important;
    }
}


/*================================================================
  THE INTIMACY GUIDE — SEARCH OVERLAY FIX
  Hidden by default, shown only via the .tig-search-active class
  toggled by the small script in main-navigation.php.
================================================================*/

.main-navigation-search {
    position: relative;
    display: flex;
    align-items: center;
}

.tig-search-panel {
    position: absolute;
    top: 50%;
    right: 44px;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    visibility: visible;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
    z-index: 500;
}

.tig-search-panel.tig-search-active {
    width: 260px;
    opacity: 1;
    pointer-events: auto;
}

.tig-search-panel form,
.tig-search-panel .search-form {
    width: 100%;
    display: flex;
    gap: 0;
}

.tig-search-panel input[type="search"],
.tig-search-panel .search-field {
    flex: 1;
    width: 100%;
    padding: 10px 16px;
    border-radius: 22px 0 0 22px;
    border: 1px solid var(--tig-line);
    border-right: none;
    background: #fff;
    color: var(--tig-ink);
    font-family: var(--tig-font-body);
    font-size: 13.5px;
}

.tig-search-panel input[type="search"]:focus,
.tig-search-panel .search-field:focus {
    outline: none;
    border-color: var(--tig-terracotta);
}

.tig-search-panel input[type="submit"],
.tig-search-panel .search-submit {
    border-radius: 0 22px 22px 0;
    padding: 10px 18px;
    background: var(--tig-terracotta);
    color: #fff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tig-search-panel input[type="submit"]:hover,
.tig-search-panel .search-submit:hover {
    background: var(--tig-plum);
}

.tig-search-overlay-DEAD {
    display: none;
}

.tig-search-close-DEAD {
    display: none;
}

.tig-search-toggle-btn,
.tig-hamburger-btn,
.left-menu-toggle-btn {
    background: transparent !important;
    padding: 8px !important;
    color: var(--tig-plum) !important;
    box-shadow: none !important;
    position: relative;
    z-index: 501;
}

.tig-search-toggle-btn .fa-times {
    display: none;
}

.tig-search-toggle-btn.tig-search-active .fa-search {
    display: none;
}

.tig-search-toggle-btn.tig-search-active .fa-times {
    display: inline-block;
}


/*================================================================
  THE INTIMACY GUIDE — FRONT PAGE WIDTH FIX
  The parent theme's layout CSS reserves sidebar column space via
  [data-layout] on .main-content. front-page.php has no sidebar,
  so force it to plain full-width block on the front page only.
================================================================*/

body.home .main-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.tig-home {
    width: 100%;
    box-sizing: border-box;
}


/*================================================================
  THE INTIMACY GUIDE — SITE-WIDE CONTENT POLISH
  Covers pages, comments, 404, search widget, pagination —
  areas not covered by the earlier single-post/blog-grid passes.
================================================================*/

/* --- Generic page content (page.php) --- */
.page .post-page-content,
.page-content {
    font-family: var(--tig-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--tig-ink);
}

.page .post-title,
.page-title {
    font-family: var(--tig-font-display) !important;
    font-weight: 500 !important;
    color: var(--tig-plum) !important;
    font-size: 36px;
}

/* --- 404 page --- */
.not-found {
    text-align: center;
    padding: 80px 20px;
}

.not-found h2 {
    font-family: var(--tig-font-display);
    font-weight: 500;
    color: var(--tig-plum);
    font-size: 32px;
    margin-bottom: 14px;
}

.not-found p {
    color: var(--tig-grey);
    font-size: 16px;
}

.not-found .search-form {
    margin-top: 24px;
    display: inline-flex;
    gap: 8px;
}

/* --- Search form (sidebar widget + generic) --- */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form .search-field {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--tig-line);
    border-radius: 4px;
    font-family: var(--tig-font-body);
    font-size: 14px;
}

.search-form .search-submit {
    background: var(--tig-terracotta);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background: var(--tig-plum);
}

/* --- Comments area --- */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--tig-line);
}

.comments-title {
    font-family: var(--tig-font-display);
    font-weight: 500;
    color: var(--tig-plum);
    font-size: 24px;
    margin-bottom: 24px;
}

.comments-title span {
    color: var(--tig-terracotta);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    border-bottom: 1px solid var(--tig-line);
    padding: 20px 0;
}

.comment-list .comment-author {
    font-family: var(--tig-font-body);
    font-weight: 600;
    color: var(--tig-plum);
}

.comment-list .comment-metadata {
    font-size: 12.5px;
    color: var(--tig-grey);
    margin-bottom: 8px;
}

.comment-list .comment-metadata a {
    color: var(--tig-grey);
}

.comment-respond {
    margin-top: 30px;
}

.comment-reply-title {
    font-family: var(--tig-font-display);
    font-weight: 500;
    color: var(--tig-plum);
    font-size: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tig-line);
    border-radius: 4px;
    font-family: var(--tig-font-body);
    font-size: 14px;
    margin-bottom: 14px;
}

.comment-form textarea {
    min-height: 120px;
}

.no-comments {
    color: var(--tig-grey);
    font-style: italic;
}

/* --- Pagination --- */
.pagination,
.comments-pagination,
.posts-navigation {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 40px 0;
}

.pagination a,
.pagination span,
.comments-pagination a,
.posts-navigation a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--tig-line);
    border-radius: 4px;
    color: var(--tig-plum);
    font-family: var(--tig-font-body);
    font-size: 13px;
}

.pagination a:hover {
    background: var(--tig-terracotta);
    color: #fff;
    border-color: var(--tig-terracotta);
}

.pagination .current {
    background: var(--tig-plum);
    color: #fff;
    border-color: var(--tig-plum);
}

/* --- Generic widget list items (categories, archives, recent posts fallback) --- */
.graceful-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.graceful-widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--tig-line);
    font-family: var(--tig-font-body);
    font-size: 14px;
}

.graceful-widget ul li a {
    color: var(--tig-ink);
}

.graceful-widget ul li a:hover {
    color: var(--tig-terracotta);
}

.graceful-widget .textwidget {
    font-family: var(--tig-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--tig-grey);
}

/* --- Sidebar spacing --- */
.sidebar-right-wrap,
.sidebar-left-wrap {
    padding-top: 4px;
}

.sidebar-right-wrap .graceful-widget,
.sidebar-left-wrap .graceful-widget {
    margin-bottom: 36px;
}


/*================================================================
  THE INTIMACY GUIDE — REMAINING GAPS PASS
  Homepage slider button/meta and search "no results" box were
  still using the original theme's default black/grey styling.
================================================================*/

.graceful-opal-slide-button {
    background-color: var(--tig-terracotta) !important;
    font-family: var(--tig-font-body);
}

.graceful-opal-slide-button:hover {
    background-color: var(--tig-plum) !important;
}

.graceful-opal-slide-meta,
.graceful-opal-slide-date {
    color: var(--tig-grey) !important;
    font-family: var(--tig-font-body);
}

.no-result-found {
    text-align: center;
    padding: 60px 20px;
}

.no-result-found h3 {
    font-family: var(--tig-font-display);
    font-weight: 500;
    color: var(--tig-plum);
    font-size: 26px;
    margin-bottom: 10px;
}

.no-result-found p {
    color: var(--tig-grey);
    margin-bottom: 20px;
}


/*================================================================
  THE INTIMACY GUIDE — FOOTER WIDTH FIX
  Footer widget area appears to use a fixed-column grid sized for
  more widgets than currently exist, leaving empty reserved columns.
  Force it to a flexible flow layout instead.
================================================================*/

#site-footer .site-footer-wrap {
    display: flex !important;
    flex-wrap: wrap;
    gap: 50px;
    width: 100%;
    max-width: 100%;
}

#site-footer .graceful-widget {
    flex: 1 1 240px;
    max-width: 320px;
}


/*================================================================
  THE INTIMACY GUIDE — FOOTER WIDGET GRID FALLBACK
  Best-effort fix for the footer leaving empty space if its grid
  assumes a fixed column count — forces widgets to wrap and fill
  available width regardless of exact container markup.
================================================================*/
#site-footer .site-footer-wrap,
#site-footer .footer-widgets,
#site-footer .widget-area {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px;
    width: 100% !important;
    justify-content: flex-start;
}

#site-footer .graceful-widget {
    flex: 1 1 0;
    min-width: 200px;
}


/*================================================================
  THE INTIMACY GUIDE — MOBILE CONTENT WIDTH FIX
  The theme's [data-layout] grid on .main-content (used for single
  posts, blog listing, pages) never collapses to a single full-width
  column on narrow screens, squeezing content into a slim column and
  making text wrap one word per line. Force full-width below 768px.
================================================================*/
@media screen and (max-width: 768px) {
    .main-content {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .content-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 0 20px !important;
    }

    .ggb-modern-post .ggb-modern-content {
        max-width: 100% !important;
    }

    .ggb-modern-post-header-wrap {
        padding: 0 20px;
        box-sizing: border-box;
    }
}


/*================================================================
  THE INTIMACY GUIDE — MODERN MOBILE SLIDE-IN MENU
  Replaces the plain bullet-list mobile menu with a slide-in panel
  from the right, dark overlay behind it, clean spaced-out links.
================================================================*/
@media screen and (max-width: 768px) {

    .site-menu-wrapper {
        display: none !important;
    }

    .tig-hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        background: transparent !important;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .tig-hamburger-btn:active {
        background: var(--tig-blush) !important;
    }

    .tig-hamburger-btn i {
        color: var(--tig-ink) !important;
        font-size: 22px;
    }

    .tig-hamburger-btn .fa-times {
        display: none;
    }

    .tig-hamburger-btn.tig-mobile-menu-active .fa-bars {
        display: none;
    }

    .tig-hamburger-btn.tig-mobile-menu-active .fa-times {
        display: inline-block;
    }

    .tig-mobile-nav-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        max-width: 82vw;
        background: #fff;
        box-shadow: -12px 0 40px rgba(0,0,0,0.18);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
        z-index: 3000;
        padding: 90px 32px 40px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .tig-mobile-nav-panel.tig-mobile-menu-active {
        transform: translateX(0);
    }

    #responsive-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #responsive-menu li {
        border-bottom: 1px solid var(--tig-line);
    }

    #responsive-menu li a {
        display: block;
        padding: 16px 0;
        font-family: var(--tig-font-display);
        font-weight: 500;
        font-size: 19px;
        color: var(--tig-ink) !important;
        letter-spacing: 0;
    }

    #responsive-menu li a:hover {
        color: var(--tig-terracotta) !important;
    }

    .tig-mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 2999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .tig-mobile-menu-overlay.tig-mobile-menu-active {
        display: block;
        opacity: 1;
    }

    .tig-mobile-menu-close {
        position: fixed;
        top: 28px;
        right: 24px;
        background: transparent;
        border: none;
        font-size: 22px;
        color: var(--tig-ink);
        cursor: pointer;
        padding: 8px;
        z-index: 3001;
        display: none;
    }

    .tig-mobile-menu-close.tig-mobile-menu-active {
        display: block;
    }
}

@media screen and (min-width: 769px) {
    .tig-mobile-menu-overlay,
    .tig-mobile-menu-close {
        display: none !important;
    }
}


/*================================================================
  THE INTIMACY GUIDE — INLINE SEARCH MOBILE CLAMP
================================================================*/
@media screen and (max-width: 480px) {
    .tig-search-panel {
        right: 40px;
    }
    .tig-search-panel.tig-search-active {
        width: 160px;
    }
}


/*================================================================
  THE INTIMACY GUIDE — MOBILE SEARCH REDESIGN
  The desktop inline-expanding pill doesn't translate to narrow
  screens (caused misaligned, oversized overlap). Mobile gets its
  own full-width dropdown bar anchored under the header instead.
================================================================*/
@media screen and (max-width: 768px) {

    .tig-search-toggle-btn {
        width: 44px;
        height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .tig-search-panel {
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 10px;
        background: #fff;
        border: 1px solid var(--tig-line);
        box-shadow: 0 16px 36px rgba(0,0,0,0.16);
        padding: 14px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow: visible;
        transition: opacity 0.2s ease;
        z-index: 3500;
    }

    .tig-search-panel.tig-search-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        width: auto;
    }

    .tig-search-panel .search-form,
    .tig-search-panel form {
        flex-direction: row;
        gap: 0;
    }

    .tig-search-panel input[type="search"],
    .tig-search-panel .search-field {
        border-radius: 8px 0 0 8px;
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .tig-search-panel input[type="submit"],
    .tig-search-panel .search-submit {
        border-radius: 0 8px 8px 0;
        padding: 0 18px;
        min-height: 44px;
        min-width: 44px;
    }
}


/*================================================================
  THE INTIMACY GUIDE — CONTACT PAGE (page-contact.php)
================================================================*/
.tig-contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 70px 24px 100px;
}

.tig-contact-eyebrow {
    display: block;
    font-family: var(--tig-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--tig-terracotta);
    text-transform: uppercase;
    margin-bottom: 14px;
    text-align: center;
}

.tig-contact-intro {
    text-align: center;
    margin-bottom: 40px;
}

.tig-contact-intro h1 {
    font-family: var(--tig-font-display);
    font-weight: 500;
    font-size: 38px;
    color: var(--tig-ink);
    margin: 0 0 16px;
}

.tig-contact-intro p {
    font-family: var(--tig-font-body);
    font-size: 15.5px;
    color: var(--tig-grey);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.tig-contact-form-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tig-form-row {
    margin-bottom: 22px;
}

.tig-form-row label {
    display: block;
    font-family: var(--tig-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--tig-ink);
    margin-bottom: 8px;
}

.tig-optional {
    font-weight: 400;
    color: var(--tig-grey);
}

.tig-form-row input[type="text"],
.tig-form-row input[type="email"],
.tig-form-row textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--tig-line);
    border-radius: 6px;
    font-family: var(--tig-font-body);
    font-size: 15px;
    color: var(--tig-ink);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.tig-form-row input[type="text"]:focus,
.tig-form-row input[type="email"]:focus,
.tig-form-row textarea:focus {
    outline: none;
    border-color: var(--tig-terracotta);
}

.tig-form-row textarea {
    resize: vertical;
    min-height: 130px;
}

.tig-contact-submit {
    width: 100%;
    background: var(--tig-terracotta);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-family: var(--tig-font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tig-contact-submit:hover {
    background: var(--tig-plum);
}

.tig-contact-notice {
    padding: 16px 18px;
    border-radius: 6px;
    font-family: var(--tig-font-body);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.tig-contact-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.tig-contact-error {
    background: #fdecea;
    color: #a12622;
    border: 1px solid #f5c6c3;
}

@media screen and (max-width: 600px) {
    .tig-contact-form-card {
        padding: 26px 22px;
    }
    .tig-contact-intro h1 {
        font-size: 30px;
    }
}


/*================================================================
  THE INTIMACY GUIDE — BLOG INDEX (Articles) PAGE HEADER
================================================================*/
.tig-blog-index-header {
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 24px 10px;
    text-align: center;
}

.tig-blog-index-title {
    font-family: var(--tig-font-display);
    font-weight: 500;
    font-size: 40px;
    color: var(--tig-ink);
    margin: 0 0 14px;
}

.tig-blog-index-blurb {
    font-family: var(--tig-font-body);
    font-size: 15.5px;
    color: var(--tig-grey);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

@media screen and (max-width: 600px) {
    .tig-blog-index-title {
        font-size: 30px;
    }
}
