/* Header Search Box */
.nav-primary-wrapper {
    display: flex;
    align-items: center;
    float: right;
}

@media only screen and (max-width: 960px) {
    .nav-primary-wrapper {
        display: block;
        float: none;
    }
}

.header-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

/* Header WooCommerce Cart */
.header-woo-cart {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
}

.header-woo-cart .cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    position: relative;
    transition: color 0.3s ease;
}

.header-woo-cart .cart-icon:hover {
    color: #ef6437;
}

.header-woo-cart svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.header-woo-cart .cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef6437;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-search-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    line-height: 1;
    transition: color 0.3s ease;
}

.header-search-toggle:hover {
    color: #ef6437;
}

.header-search-toggle .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.header-search-form {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 0;
    overflow: hidden;
}

.header-search-wrapper.active .header-search-form {
    opacity: 1;
    visibility: visible;
    width: 250px;
    margin-right: 10px;
}

.header-search-form form {
    display: flex;
    gap: 0;
    margin: 0;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}

.header-search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    color: #333;
}

.header-search-form .search-submit {
    padding: 8px 12px;
    background: #ef6437;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header-search-form .search-submit:hover {
    background: #d5532a;
}

.header-search-form .search-submit .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

@media only screen and (max-width: 960px) {
    .site-header {
        padding: 0px 10px;
    }

    .wp-custom-logo .title-area {
        max-width: 230px;
    }

    .menu-toggle {
        margin: 0;
        padding: 15px 10px;
    }

    .header-search-wrapper {
        margin-right: 10px;
        margin-top: 10px;
    }

    .header-search-wrapper.active .header-search-form {
        width: 200px;
    }
}

.menu-primary > li > a,
.menu-primary > li > a:hover {
    color: #ffffff;
}

/* Prevent dropdown menus from going off-screen on desktop */
@media only screen and (min-width: 960px) {
    /* Target last 3 menu items and flip their dropdowns to open from right edge */
    .genesis-nav-menu > .menu-item:nth-last-child(-n + 3) .sub-menu {
        left: auto;
        right: 0;
    }

    /* For nested submenus in right-edge items, open to the left */
    .genesis-nav-menu > .menu-item:nth-last-child(-n + 3) .sub-menu .sub-menu {
        margin: -46px 179px 0 0;
        left: auto;
        right: 100%;
    }
}

.menu-toggle,
.menu-toggle:hover,
.sub-menu-toggle,
.sub-menu-toggle:hover {
    color: #ffffff;
}

/* Remove "Menu" text from mobile menu toggle button */
.menu-toggle {
    font-size: 0;
}

.menu-toggle::before {
    font-size: 20px;
}

.sub-menu {
    background-color: #ffffff;
}

.genesis-nav-menu .sub-menu a,
.genesis-nav-menu .sub-menu a:hover {
    background-color: transparent;
    color: var(--color-nk-blue-500) !important;
}

.genesis-nav-menu a:focus,
.genesis-nav-menu a:hover,
.genesis-nav-menu .current-menu-item > a,
.genesis-nav-menu .sub-menu .current-menu-item > a:focus,
.genesis-nav-menu .sub-menu .current-menu-item > a:hover {
    /* text-decoration: underline; */
}

@media only screen and (max-width: 960px) {
    .sub-menu {
        background-color: transparent;
    }

    .genesis-nav-menu .sub-menu a,
    .genesis-nav-menu .sub-menu a:hover {
        background-color: transparent;
        /* color: #ffffff; */
    }
    .genesis-nav-menu a:focus,
    .genesis-nav-menu a:hover,
    .genesis-nav-menu .current-menu-item > a,
    .genesis-nav-menu .sub-menu .current-menu-item > a:focus,
    .genesis-nav-menu .sub-menu .current-menu-item > a:hover {
        background-color: transparent;
        /* color: #ffffff; */
    }
}

/* Footer Styles */

.site-footer {
    padding: 0;
    margin-top: 0;
}

/* Newsletter Section */
.footer-newsletter {
    background: var(--color-nk-blue-500);
    box-shadow: 0px 0px 0px 7px #ff6903;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 40px 0 0;
    margin-bottom: 0;
}

.footer-newsletter-widgets {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.footer-newsletter-widgets .widget {
    margin-bottom: 0px;
}

/* Main Footer Section */
.footer-main {
    background-color: var(--color-nk-blue-500);
    padding: 0px 0 40px;
    color: #ffffff;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.footer-column h4 {
    color: var(--color-nk-orange-500);
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.footer-column h4:first-child {
    /* margin-top: 0; */
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

.footer-column a:hover {
    text-decoration: underline;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 300px;
    height: auto;
}

/* Responsive Footer */
@media only screen and (max-width: 960px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-newsletter-widgets {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo img {
        max-width: 230px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }
}

@media only screen and (min-width: 961px) and (max-width: 1200px) {
    .footer-columns {
        gap: 30px;
    }
}

/* Full Width Page Template */
.full-width-page .site-inner {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.full-width-page .content {
    width: 100%;
    max-width: none;
}

/* Search Results Page */
.search-results .archive-title {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ef6437;
}

.search-results .archive-title span {
    color: #ef6437;
    font-style: italic;
}

/* 3-Column Grid Layout */
.search-results .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.search-results .archive-description {
    grid-column: 1 / -1;
}

.search-results .entry {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-results .entry:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.search-results .entry-image-link {
    display: block;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.search-results .entry-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-results .entry:hover .entry-image-link img {
    transform: scale(1.05);
}

.search-results .entry-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.search-results .entry-title a {
    color: #2d2d49;
    text-decoration: none;
}

.search-results .entry-title a:hover {
    color: #ef6437;
}

.search-results .entry-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.search-results .entry-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.search-results .more-link {
    display: inline-block;
    padding: 8px 16px;
    background: #ef6437;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-results .more-link:hover {
    background: #d5532a;
    color: #fff;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results p {
    font-size: 20px;
    margin-bottom: 30px;
}

.no-results .search-form-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.no-results .suggestions {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 10px;
}

.no-results .suggestions h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d2d49;
}

.no-results .suggestions ul {
    list-style: disc;
    padding-left: 30px;
    margin: 0;
}

.no-results .suggestions li {
    margin-bottom: 10px;
}

.no-results .suggestions a {
    color: #0073e5;
    font-weight: 600;
}

/* Search Form Styling */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #ef6437;
}

.search-form .search-submit {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-form input[type="submit"] {
    padding: 12px 30px;
    background: #ef6437;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: #d5532a;
}

@media only screen and (max-width: 1024px) {
    .search-results .content .entry-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .search-results .content .entry-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-results .entry-title {
        font-size: 18px;
    }

    .search-results .entry-image-link img {
        height: 180px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input[type="submit"] {
        width: 100%;
    }
}

/* Single Post Featured Image */
.single .featured-image {
    margin-bottom: 30px;
}

.single .featured-image img {
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Single Post Full Width */
.page .site-inner,
.single .site-inner {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.single .site-inner .content-sidebar-wrap {
    padding: 50px 50px 0;
}

/* Entry Meta Row - Two Columns */
.entry-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.entry-meta-left,
.entry-meta-right {
    font-weight: bold;
    color: #848484;
}

.entry-meta-left {
    flex: 1;
}

.entry-meta-right {
    flex-shrink: 0;
    text-align: right;
}

.entry-meta-left .entry-meta,
.entry-meta-left p {
    margin: 0;
    font-weight: bold;
    color: #848484;
}

@media only screen and (max-width: 768px) {
    .entry-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .entry-meta-right {
        text-align: left;
    }
}

/* knowledge base */

.eckb-kb-template {
    padding: 0 !important;
    margin: 0 !important;
}

#eckb-article-page-container-v2 #eckb-article-body {
    max-width: 100%;
    width: 100% !important;
}

#eckb-article-page-container-v2 #eckb-article-right-sidebar {
    display: none !important;
}

#eckb-article-page-container-v2 #eckb-article-body {
    grid-template-columns: 25% 75% 0% !important;
}

.site-container .wp-block-columns.alignfull,
.alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
    padding: 0;
}

.site-container .wp-block-button .wp-block-button__link {
    padding: 10px;
}

/* Ultmiate members / Gamipress / Gallery*/

.um {
    opacity: 1 !important;
}

.um-ajax-items {
    display: flex;
    flex-wrap: wrap;
}

.um-ajax-items .um-item {
    width: 49%;
    margin: 10px 0.5%;
}

@media (max-width: 767.9px) {
    .um-ajax-items .um-item {
        width: 100%;
    }
}

.main-header-menu .menu-item:hover > .sub-menu:last-child {
    right: 0;
    left: auto;
}

.gamipress-achievements-container .gamipress-achievement {
    border: 1px solid #999999 !important;
    border-radius: 10px;
    padding: 20px;
}

@media screen and (min-width: 768px) {
    .gamipress-achievements-container .gamipress-achievement {
        margin-right: 1%;
    }

    .gamipress-columns-3 > .gamipress-achievement,
    .gamipress-columns-3 > .gamipress-points,
    .gamipress-columns-3 > .gamipress-points-type,
    .gamipress-columns-3 .gamipress-rank {
        width: 32%;
    }
}

.gamipress-achievement-steps-heading {
    display: none;
}

.um-account-tab-downloads input,
.um-account-tab-achievements input {
    display: none;
}

.um-account-tab-downloads .button,
.um-account-tab-achievements .button {
    display: block;
}

.gamipress-achievement-image img {
    background: #5462a4;
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
}

.single-achievement .gamipress-achievement-image {
    width: 25% !important;
    margin-bottom: 20px;
}

.single-achievement .gamipress-achievement-image img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single-achievement .gamipress-achievement-description {
    width: 75% !important;
}

@media screen and (max-width: 768px) {
    .single-achievement .gamipress-achievement-image,
    .single-achievement .gamipress-achievement-description {
        width: 100% !important;
    }
}

.gamipress-share-buttons-label {
    margin-bottom: 0 !important;
    font-size: 18px !important;
}

.gamipress-achievements-list .gamipress-achievement-title {
    margin-top: 6px;
    margin-bottom: 6px;
    width: 100%;
}

.gamipress-achieved-date {
    background-color: #ee6a1b;
    padding: 0px 15px;
    border-radius: 20px;
    color: #fff;
    margin-top: 10px;
    display: inline-block;
}

p.gamipress-share-buttons-label {
    display: none;
}

.um-member-directory-search-row {
    display: none !important;
}

.um-cover .um-cover-e {
    background-color: #5462a4 !important;
}

.um-directory .um-members-wrapper .um-members.um-members-grid .um-member {
    border-radius: 10px !important;
}

.um-directory .um-members-wrapper .um-members.um-members-grid .um-member .um-member-cover {
    border-radius: 10px 10px 0 0 !important;
    height: 128px !important;
    overflow: hidden !important;
    background-color: var(--random-color);
    position: relative;
}

.um-directory .um-members-wrapper .um-members.um-members-grid .um-member .um-member-cover .um-member-cover-e img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    width: auto !important;
    height: auto;
}

.um-directory .um-members-wrapper .um-members.um-members-grid .um-member.with-cover .um-member-photo a img {
    width: 120px !important;
    height: 120px !important;
    top: -60px !important;
    margin-bottom: -70px !important;
}

.um-directory .um-members-wrapper .um-members.um-members-grid .um-member .fi {
    font-size: 25px !important;
}

.um-main-meta .fi {
    font-size: 24px;
}

.um-meta .um-faicon-phone {
    color: #16b15b;
}

.um-meta .um-faicon-home {
    color: #678fc9;
}

.um-meta .um-faicon-building {
    color: #e93f9a;
}

.artist-services {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    background-color: #fdc6e4;
}

.artist-services-title {
    margin: 20px 0;
    text-align: center !important;
    color: #c3527c !important;
    width: 100%;
    font-family: "Lobster Two" !important;
    font-size: 50px !important;
}

.artist-services > div {
    width: 33%;
}

.artist-services > div > img {
    max-width: 100%;
}

.um-profile-body > p {
    line-height: 4rem;
}

.um-profile img.gamipress-achievement-thumbnail {
    margin: auto !important;
}

.um-meta span {
    color: #3a3a3a !important;
    font-size: 15px !important;
}

.artist-services-grouped h3 {
    color: #ee6a1b !important;
}

.artist-services-grouped h4 {
    font-size: 26px !important;
}

.artist-services-grouped ul {
    max-width: 70%;
    line-height: 1.5;
}

.artist-services-grouped img {
    max-width: 45%;
}

@media screen and (max-width: 821px) {
    .artist-services-grouped > div > div {
        min-height: 200px;
    }
    .artist-services-grouped ul {
        max-width: 70%;
        line-height: 1.5;
    }
    .artist-services-grouped img {
        max-width: 45%;
    }
}

@media screen and (max-width: 400px) {
    .artist-services-grouped ul {
        max-width: 55%;
    }
    .artist-services-grouped img {
        max-width: 40%;
    }
}

.artist-gallery h3 {
    color: #ee6a1b !important;
}

.artist-gallery-slider figure.wp-block-image {
    position: relative;
}

.artist-gallery-slider figure.wp-block-image img {
    border-radius: 1rem;
}

.artist-gallery-slider figure.wp-block-image figcaption {
    background: linear-gradient(0deg, #000000b3, #0000004d 70%, #0000);
    bottom: 0;
    box-sizing: border-box;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    left: 0;
    margin-bottom: 0;
    max-height: 60%;
    overflow: auto;
    padding: 0 8px 8px;
    position: absolute;
    scrollbar-color: #0000 #0000;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    text-align: center;
    width: 100%;
    will-change: transform;
    border-radius: 0 0 1rem 1rem;
}

.um-profile.um-editing .um-cover-overlay {
    display: block !important;
}

@media screen and (max-width: 768px) {
    .um-profile .um-meta-text {
        text-align: left;
    }

    .um-meta > span {
        width: 100%;
        text-align: center;
        margin: 0px;
        font-size: 18px !important;
    }

    .um-meta .b {
        display: none;
    }

    .artist-gallery {
        padding: 20px;
    }

    .artist-gallery h3 {
        text-align: center;
    }

    .artist-services-grouped h3 {
        text-align: center;
    }

    .artist-services-grouped h4 {
        text-align: center;
        padding-right: 80px;
        font-size: 24px !important;
    }
}

.cmtt_related_linked_terms_wrapper {
    background: #e2e2e2;
    padding: 5px 20px;
}

.cmtt_related_terms {
    list-style: none;
    flex-wrap: wrap;
    display: inline-flex;
}
.cmtt_related_terms li {
    padding-left: 0px;
    padding-right: 10px;
    list-style: none;
    list-style-type: none;
}
.cmtt_related_terms li a {
    color: #2d2d49 !important;
    text-decoration: revert;
    font-size: 22px;
}

/* quiz */

/* quiz builder */

.tqb-template-style-3 .tqb-question-wrapper {
    /* background-image: url("https://nailknowledge.org/wp-content/uploads/2020/02/Background-Blue.jpg") !important; */
    background: #5462a4 !important;
}

.tqb-template-style-3 .tqb-question-wrapper .tqb-answers-container,
.tqb-template-style-3 .tqb-progress-container {
    background-color: transparent !important;
}

.tqb-template-style-3 .tqb-answer-inner-wrapper:not(.tqb-open-ended-wrapper) {
    border: 2px solid #ffffff !important;
    background-color: #2d2d49 !important;
}

.tqb-answer-action {
    box-shadow: none !important;
}

.tqb-answer-feedback {
    border-radius: 10px;
    background-color: #678fc9;
}

.tqb-answer-feedback p.tqb-feedback-text:first-child {
    font-weight: bold;
    font-size: 30px !important;
    margin-bottom: 0;
}

.tqb-right-answer {
    background: linear-gradient(320deg, rgb(0, 212, 91) 5%, rgb(35, 164, 85) 100%) !important;
}

.tqb-wrong-answer {
    background: linear-gradient(320deg, rgb(255, 105, 0) 0%, rgb(207, 46, 46) 100%) !important;
}

.tqb-button-holder .tqb-nav-button {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.tqb-button-holder .tqb-nav-button a {
    background: #16b15b;
    margin: 0;
    line-height: 0;
    display: flex !important;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    justify-content: center;
    padding: 10px;
    border-radius: 30px;
}

.tqb-button-holder .tqb-nav-button a svg {
    fill: #ffffff !important;
}

.tqb-button-holder .tqb-next-button a:before {
    content: "Continue";
    font-size: 38px;
    vertical-align: middle;
    margin-top: 17px;
    display: inline-block;
    padding: 0 10px;
    color: #ffffff;
}

/* .tqb-button-holder .tqb-finish-button {
  width: auto !important;
} */

.tqb-button-holder .tqb-finish-button a:before {
    content: "Check Results";
    font-size: 38px;
    vertical-align: middle;
    margin-top: 17px;
    display: inline-block;
    padding: 0 10px;
    color: #ffffff;
    white-space: nowrap;
}

.tqb-question-wrapper {
    padding: 20px 0 !important;
    display: grid;
}

.tqb-question-wrapper .tqb-question-container {
    order: 0;
}

.tqb-question-wrapper .tqb-question-container {
    order: 1;
    display: grid;
    margin-bottom: 0px !important;
}

.tqb-question-wrapper .tqb-question-container .tqb-question-image-container {
    order: 1;
}

.tqb-question-wrapper .tqb-question-container .tqb-question-text {
    order: 2;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    text-align: center !important;
}

.tqb-question-wrapper .tqb-answers-container {
    order: 2;
}

.tqb-question-wrapper .tqb-progress-container {
    order: 5;
}

.tqb-question-wrapper .tqb-button-holder {
    order: 4;
}

.tqb-question-wrapper .tqb-button-holder .tqb-finish-button,
.tqb-question-wrapper .tqb-button-holder .tqb-next-button {
    margin-left: auto !important;
    margin-right: auto !important;
}

.quiz-grid .wp-block-column {
    display: flex;
    flex-direction: column;
}

.quiz-grid .wp-block-column .wp-block-buttons {
    flex-grow: 1;
    align-items: flex-end;
    align-content: flex-end;
}
