/*
Theme Name:     Country Now Child Theme
Theme URI:      https://katyboykin.com
Template:       kadence
Author:         Katy Boykin
Author URI:     https://katyboykin.com
Description:    A child theme for the Country Now website, created by Katy Boykin
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Header */

/* Fix sticky header */
.kadence-sticky-header.item-is-fixed {
  top: 0 !important;
}

.header-search-bar form input.search-field {
    border-radius: 0;
}

.header-search-bar input[type='search']:focus {
    box-shadow: none;
}

.modal-trigger.header-button.button-size-custom {
    background: var(--global-palette-btn-bg);
    color: var(--global-palette-btn);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 1px;
    font-family: Roboto, sans-serif;
    text-transform: uppercase;
    border-radius: 0px;
    text-decoration: none;
    padding: 0.65em 1em 0.6em 1em;
}

.modal-trigger.header-button.button-size-custom:hover {
    background: var(--global-palette-btn-bg-hover);
    color: var(--global-palette-btn-hover);
}

.header-html2 .header-html-inner p *,
.site-header-item .search-toggle-open {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#masthead
    .child-is-fixed
    :is(
        .kadence-sticky-header .header-html2 .header-html-inner p *,
        .site-header-item .search-toggle-open
    ) {
    visibility: visible;
    opacity: 1;
}

/* Mobile header */

.header-mobile-search-bar form input[type='search'] {
    border-radius: 0;
}

#search-drawer .drawer-inner .drawer-content form input.search-field {
    border: 4px solid var(--global-palette7);
    border-radius: 0;
    box-shadow: none;
}

#search-drawer .drawer-inner .drawer-content form input.search-field {
    box-shadow: none;
}

#mobile-drawer .modal-trigger.header-button.button-size-custom {
    padding: 0.65em 2em 0.65em 2em;
}

#mobile-drawer .modal-trigger.header-button.button-size-custom:hover {
    padding: 0.65em 2em 0.65em 2em;
    background: var(--global-palette9);
    color: var(--global-palette3);
}

#mobile-header .search-toggle-open-container .search-toggle-open {
    color: var(--global-palette1);
}

/* Footer */

@media all and (max-width: 767px) {
    #colophon .wp-block-kadence-image {
        margin: 0 auto 1em auto;
    }
}

.kb-footer
    :is(
        .wp-block-navigation__container,
        .wp-block-navigation__container li,
        .wp-block-navigation__container li a
    ) {
    width: 100%;
    transition: all 0.3s ease;
}
.kb-footer .wp-block-navigation__container {
    gap: 18px;
}

.kb-footer .wp-block-navigation__container li {
    padding-right: 10px;
}

.kb-footer .wp-block-navigation__container li a span:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -10px;
    left: 0;
    background: var(--global-palette8);
    opacity: 0.1;
}

.kb-footer
    .wp-block-navigation__container
    li:nth-last-of-type(1)
    a
    span:before {
    display: none;
}

.kb-footer .wp-block-navigation__container li a::after {
    content: '›';
    font-size: 30px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-55%);
}

.kb-footer .wp-block-navigation__container li a:hover {
    padding-left: 20px;
}

.kb-footer .wp-block-kadence-posts .loop-entry {
    display: grid;
    grid-template-columns: 30% auto;
    gap: 20px;
}

.kb-footer .wp-block-kadence-posts .loop-entry .entry-header .entry-meta {
    margin: 5px 0;
}

/* Titles with lines */

.kb-line-between.wp-block-kadence-advancedheading {
    flex: 1 1 auto;
}

.kb-tab-titles.wp-block-kadence-advancedheading {
    position: relative;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.kb-title-with-lines {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.kb-title-with-lines.center:before,
.kb-title-with-lines.center:after,
.kb-title-with-lines.left::after,
.kb-title-with-lines.right::before {
    content: '\a0';
    position: absolute;
    top: 50%;
    overflow: hidden;
    width: 48%;
    height: 8px;
    background: var(--global-palette2);
    margin-left: 2%;
    transform: translateY(-50%);
}

.kb-title-with-lines.center:before {
    margin-left: -50%;
}

.kb-title-with-lines.left::after,
.kb-title-with-lines.right::before {
    width: 100%;
}

.kb-title-with-lines.right:before {
    margin-left: -102%;
}

@media all and (max-width: 767px) {
    .kb-title-with-lines.left,
    .kb-title-with-lines.right {
        border-bottom: 8px solid var(--global-palette2);
    }
    .kb-title-with-lines.left::after,
    .kb-title-with-lines.right::before {
        display: none;
    }
}

/* Title with arrow */
.kb-title-arrow img {
    -webkit-filter: invert(23%) sepia(32%) saturate(3460%) hue-rotate(333deg)
        brightness(91%) contrast(87%);
    filter: invert(23%) sepia(32%) saturate(3460%) hue-rotate(333deg)
        brightness(91%) contrast(87%);
    transform: translateY(50%) translateX(-30%);
}

/* Optin form */

.kb-optin-form input::-webkit-input-placeholder {
    text-align: center;
}

.kb-optin-form input::-moz-placeholder {
    text-align: center;
}

.kb-optin-form input:-ms-input-placeholder {
    text-align: center;
}

.kb-optin-form input::-ms-input-placeholder {
    text-align: center;
}

.kb-optin-form input.kb-email-field,
.kb-optin-form input::placeholder {
    text-align: center;
}

/* Spotify Playlist */

.kb-spotify-playlist .kt-inside-inner-col {
    position: relative;
}

.kb-spotify-playlist .kt-inside-inner-col::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: #974841;
}

/* Featured carousel */
/* .kb-featured-carousel-section .kt-inside-inner-col {
    display: flex;
    flex-direction: column;
} */

.kb-featured-carousel,
.kb-featured-carousel
    :is(
        .kt-post-grid-layout-carousel-wrap,
        .splide__track,
        .kt-blocks-post-grid-item,
        .kt-blocks-post-grid-item-inner-wrap,
        .kadence-post-image,
        .kadence-post-image-intrisic,
        .kt-post-grid-wrap
    ) {
/*     height: 100%; */
    position: relative;
}

.kb-featured-carousel .kt-blocks-post-grid-item-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.kb-featured-carousel .kt-blocks-post-grid-item-inner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--global-palette1);
    opacity: 0.8;
}

.kb-featured-carousel .splide .splide__arrow {
    background: var(--global-palette9);
    border-radius: 0;
    height: 3em;
    width: 3em;
    opacity: 0;
    color: var(--global-palette3);
}

.kb-featured-carousel:hover .splide .splide__arrow {
    opacity: 1;
}

.kb-featured-carousel .splide .splide__arrow--prev {
    left: 0;
}

.kb-featured-carousel .splide .splide__arrow--next {
    right: 0;
}

.kb-featured-carousel .splide[data-slider-dots='true'] {
    margin-bottom: 0;
}

.kb-featured-carousel .splide .splide__pagination {
    bottom: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
}

.kb-featured-carousel .splide .splide__pagination li {
    flex: 1 1 auto;
}

.kb-featured-carousel .splide .splide__pagination__page {
    background: var(--global-palette9);
    border-radius: 0;
    height: 5px;
    margin: 0;
    width: 100%;
    opacity: 0.5;
}

.kb-featured-carousel .splide .splide__pagination__page.is-active {
    background: var(--global-palette2);
    opacity: 1;
}

/* Post List 1 */

.kb-post-list-1 .kt-blocks-post-grid-item-inner-wrap {
    align-items: center;
}

.kb-post-list-1:not(.footer)
    :is(
        .kt-blocks-post-grid-item-inner-wrap,
        .kadence-post-image,
        .kadence-post-image-intrisic
    ) {
    height: 100%;
}

/* Post List 2 */

.kb-post-list-2 .kt-blocks-post-grid-item {
    padding-bottom: 20px;
}

.kb-post-list-2 .kt-blocks-post-grid-item:nth-last-of-type(1) {
    border-bottom: none;
}

.kb-post-list-2 .kt-blocks-post-grid-item .kt-blocks-post-grid-item-inner-wrap {
    align-items: center;
}

/* Love stories */

.kb-love-stories
    .kb-gallery-ul
    .kadence-blocks-gallery-item
    .kadence-blocks-gallery-item-inner
    .kadence-blocks-gallery-item__caption {
    background: rgba(150, 51, 51, 0.8);
    padding-top: 10px;
}

/* Media queries */

@media all and (max-width: 579px) {
    .kb-featured-carousel .kadence-post-image {
        min-height: 100vw;
    }
}

@media all and (max-width: 767px) {
    .kb-post-list-1.footer .kt-post-grid-wrap {
        grid-template-columns: 1fr 1fr;
    }
    .kb-post-list-1.footer .kt-blocks-post-grid-item-inner-wrap {
        grid-template-columns: 30% auto;
    }
}

@media all and (max-width: 1024px) {
    .kb-post-list-1.footer .kt-blocks-post-grid-item-inner-wrap {
        align-items: center;
    }
}

@media all and (min-width: 680px) and (max-width: 1024px) {
    .kb-post-list-1:not(.footer) .kt-post-grid-wrap,
    .kb-posts-4-col .kt-post-grid-wrap {
        grid-template-columns: 1fr 1fr;
    }
    .kb-post-list-1.triple .kt-post-grid-wrap {
        grid-template-columns: 1fr;
    }
    .kb-post-list-1.triple
        .kt-post-grid-wrap
        .kt-blocks-post-grid-item-inner-wrap {
        grid-template-columns: 30% auto;
    }
    .kb-latest-row
        .inner-column-1
        .kb-post-list-2
        .kt-post-grid-layout-grid-wrap,
    .kb-latest-row .inner-column-2 > .kt-inside-inner-col {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .kb-latest-row
        .inner-column-1
        .kb-post-list-2
        .kt-blocks-post-grid-item-inner-wrap {
        grid-template-columns: 40% 1fr;
        grid-gap: 20px;
    }
    .kb-latest-row .kb-trending-column .kt-inside-inner-col {
        grid-template-columns: 1fr;
    }
    .kb-love-stories .kb-gallery-ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media all and (max-width: 679px) {
    .kb-post-list-1 .kt-post-grid-wrap .kt-blocks-post-grid-item-inner-wrap {
        grid-template-columns: 30% auto;
    }
    .kb-latest-row .inner-column-2 > .kt-inside-inner-col,
    .kb-post-list-1.footer .kt-post-grid-wrap {
        grid-template-columns: 1fr;
    }
}

/* Single post template */

.kt_before_share_text {
    font-family: var(--global-heading-font-family);
    margin-right: 0;
}

.kt_simple_share_container .kt-socialstyle-style_02 a {
    background: transparent;
    color: var(--global-palette1);
}

.kt_simple_share_container .kt-socialstyle-style_02 a {
    background: transparent;
    color: var(--global-palette1);
}

.kt_simple_share_container:not(.kt-socialstyle-style_05)
    [data-placement='top']::before,
.kt_simple_share_container:not(.kt-socialstyle-style_05)
    [data-tooltip]::before {
    border-top-color: var(--global-palette2);
}

.kt_simple_share_container:not(.kt-socialstyle-style_05) [data-tooltip]::after {
    background-color: var(--global-palette2);
}

.kb-author-posts .kt-blocks-post-grid-item {
    padding-bottom: 0;
}

/* Post nav */

.kb-post-nav a,
.kb-post-nav a::after {
    position: relative;
    display: block;
    font-family: var(--global-heading-font-family);
    text-decoration: none;
    font-weight: 500;
}

.kb-post-nav [rel~='prev'] {
    margin-left: 40px;
    margin-top: 20px;
}

.kb-post-nav [rel~='next'] {
    margin-right: 40px;
    margin-top: 20px;
}

.kb-post-nav a::before {
    font-size: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.kb-post-nav [rel~='prev']::before {
    content: '‹';
    left: -40px;
}

.kb-post-nav [rel~='next']::before {
    content: '›';
    right: -40px;
}

.kb-post-nav a::after {
    position: absolute;
    text-transform: uppercase;
    letter-spacing: 1px;
    top: -30px;
    color: var(--global-palette6);
}

.kb-post-nav [rel~='prev']::after {
    content: 'Previous article';
}

.kb-post-nav [rel~='next']::after {
    content: 'Next article';
    right: 0;
}

.kb-single-post-content p {
    font-size: 18px;
    line-height: 1.6em;
}

.kb-single-post-content .wp-block-embed-tiktok blockquote {
    padding-left: 0;
    border-left: none;
}

/* Tags */

.kb-post-tag-list a {
    background: var(--global-palette1);
    margin-right: 20px;
    padding: 2px 5px 2px 10px;
    position: relative;
}

.kb-post-tag-list a[href*='affiliate-link'],
.kb-post-tag-list a[href*='affiliate-link'] > .kb-dynamic-list-divider {
    display: none;
}

.kb-post-tag-list a:after {
    right: 100%;
    top: 50%;
    border: solid transparent;
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: transparent;
    border-right-color: var(--global-palette1);
    border-width: 11px;
    margin-top: -11px;
    transition: all 0.3s ease;
}

.kb-post-tag-list a::before {
    content: '';
    background: var(--global-palette9);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    left: -3px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.kb-post-tag-list a:hover {
    background: var(--global-palette2);
}

.kb-post-tag-list a:hover::after {
    border-right-color: var(--global-palette2);
}

/* Author Tooltip */

.kb-author-tooltip {
  position: absolute;
  width: 100%;
  max-width: 400px;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity .3s ease;
}

.kb-author-tooltip .wp-block-kadence-icon {
  flex-wrap: wrap;
}

.kb-author-name:hover + .kb-author-tooltip,
.kb-author-tooltip:hover {
  opacity: 1;
  visibility: visible;
}


/* Sidebar */

@media all and (min-width: 768px) and (max-width: 1024px) {
    .kb-single-post-sidebar > .kt-inside-inner-col,
    .kb-single-post-sidebar
        .kb-latest
        > .kt-inside-inner-col
        .wp-block-kadence-postgrid
        .kt-post-grid-layout-grid-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1.5em;
    }
    .kb-single-post-sidebar :is(.kb-playlist, .kb-latest) {
        grid-column: 1 / 3;
    }
}

/* Artists Hero Element */

.kb-artists-single {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kb-artists-single .kt-post-grid-layout-grid-wrap {
    flex: 1;
}

.kb-artists-single .kt-blocks-above-categories a {
    text-decoration: none;
}

body.paged .kb-artists-hero {
    display: none;
}

/* Archives */

#archive-container {
    row-gap: 1.5rem;
}

.navigation.pagination .page-numbers {
    border-radius: 0;
}

/* Author archive social links */

.kb-author-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.kb-author-social-links a svg {
  fill: var(--global-palette9);
  width: 30px;
  height: 30px;
  background: var(--global-palette1);
  padding: 5px;
}

@media all and (max-width: 767px) {
.kb-author-social-links {
  justify-content: center;
  margin-bottom: 10px;
}
}

/* 404 */

.kb-404-search.wp-block-search.wp-block-search.wp-block-search__button-inside
    .wp-block-search__inside-wrapper {
    border-radius: 0;
    border: 4px solid var(--global-palette7);
}

.kb-404-search.wp-block-search .wp-block-search__input {
    border: none;
}

.kb-404-search.wp-block-search .wp-block-search__input:focus {
    box-shadow: none;
}
