/* SSO Account Button Styles */
.account-btn .btn-text .monogram {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.account-btn .btn-text .hover-text {
    display: none;
}

.account-btn:hover .btn-text .monogram {
    display: none;
}

.account-btn:hover .btn-text .hover-text {
    display: inline-block;
}

/* Language Selector Styles */
.hamburger-language-selector .form-row label {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    font-family: inherit;
}

.hamburger-language-selector .form-row label span {
    font-size: inherit;
    font-weight: inherit;
}

/* Bootstrap Icons size fix for service items */
.service-item.style-6 .service-icon .bi {
    font-size: 50px;
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
    .service-item.style-6 .service-icon .bi {
        font-size: 36px;
    }
}

/* h9-service-nav positioning for style-2 */
.service-item.style-2 {
    position: relative;
}

.service-item.style-2 .h9-service-nav {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 59px;
    color: var(--tj-color-common-white);
    font-weight: var(--tj-fw-sbold);
    line-height: 1;
    transition: all 0.3s ease-in-out;
    z-index: 5;
    transform: rotate(-45deg);
}

.service-item.style-2 .h9-service-nav:hover {
    color: var(--tj-color-theme-primary);
    transform: rotate(0deg);
}

.service-item.style-2 .service-content {
    margin-top: 40px;
}

/* Testimonial Section - Make it work like service-item.style-6 */
.tj-testimonial-section .testimonial-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
    min-height: 280px;
    transition: all 0.3s ease-in-out;
}

.tj-testimonial-section .testimonial-item .quote-icon {
    transition: all 0.5s ease-in-out;
}

.tj-testimonial-section .testimonial-item .title {
    margin-bottom: 0;
}

.tj-testimonial-section .testimonial-item .service-content .text-btn {
    position: absolute;
    left: auto;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    margin: 0;
}

/* Hover effects - same as service-item.style-6 */
.tj-testimonial-section .testimonial-item:hover {
    background-color: var(--tj-color-theme-primary);
}

.tj-testimonial-section .testimonial-item:hover .quote-icon {
    color: var(--tj-color-common-white);
}

.tj-testimonial-section .testimonial-item:hover .desc,
.tj-testimonial-section .testimonial-item:hover .title {
    color: var(--tj-color-common-white);
}

.tj-testimonial-section .testimonial-item:hover .desc {
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
}

.tj-testimonial-section .testimonial-item:hover .service-content .text-btn {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
    transition: all 0.2s linear;
}

.tj-testimonial-section .testimonial-item:hover .service-content .text-btn .btn-text {
    color: var(--tj-color-common-white);
}

.tj-testimonial-section .testimonial-item:hover .service-content .text-btn .btn-icon {
    background-color: var(--tj-color-theme-dark);
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
    .tj-testimonial-section .testimonial-item {
        padding: 20px;
    }

    .tj-testimonial-section .testimonial-item:hover .service-content .text-btn {
        bottom: 20px;
    }
}

/* Choose Section (first section style-2) - Reduce icon size by 5% */
.choose-box.style-2 .choose-icon {
    font-size: 83.6px !important; /* 88px * 0.95 */
}

@media only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
    .choose-box.style-2 .choose-icon {
        font-size: 61.75px !important; /* 65px * 0.95 */
    }
}

/* About page - blog-text list styling (same as blog-details) */
.h8-choose-banner .blog-text ul {
    margin-bottom: 50px;
    list-style: none;
}

.h8-choose-banner .blog-text ul li {
    display: flex;
    align-items: start;
    column-gap: 10px;
    color: var(--tj-color-heading-primary);
    font-weight: var(--tj-fw-medium);
    margin-bottom: 16px;
    break-inside: avoid;
}

.h8-choose-banner .blog-text ul li:last-child {
    margin-bottom: 0;
}

.h8-choose-banner .blog-text ul li > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    font-size: 8px;
    line-height: 1;
    margin-top: 3px;
    color: var(--tj-color-common-white);
    background: var(--tj-color-theme-primary);
    border-radius: 50%;
}

.h8-choose-banner .blog-text ul li > span:last-child {
    flex: 1;
}

@media only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
    .h8-choose-banner .blog-text ul {
        margin-bottom: 30px;
    }
}

/* h8-choose-box (second section) - icon size reduction and centering */
.h8-choose-box .choose-icon {
    font-size: 50px !important; /* Reduced for proper centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.h8-choose-box .choose-icon i {
    line-height: 1 !important;
}

@media only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
    .h8-choose-box .choose-icon {
        font-size: 45px !important;
    }
}

/* Contact items - equal height */
.tj-contact-area .contact-item.style-2 {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.tj-contact-area .contact-item.style-2 p,
.tj-contact-area .contact-item.style-2 .contact-list {
    flex: 1;
}

/* Sidebar widget feature box - smaller title */
.widget-feature-item .feature-box .feature-content .title {
    font-size: 1.5rem;
}

/* Shop sidebar category count - same size as text */
.tj-sidebar-widget.service-categories ul li a .icon {
    font-size: inherit;
}

/* Mega menu vertical dividers - override default border removal (desktop only) */
.mainmenu ul > li > .mega-menu-pages .mega-menu-pages-single:last-child {
    -webkit-border-start: 1px solid var(--tj-color-border-1) !important;
    border-inline-start: 1px solid var(--tj-color-border-1) !important;
    padding: 26px 30px 20px !important;
    width: 315px !important;
}

/* Mobile menu - no borders on last child */
.mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single:last-child {
    -webkit-border-start: 0 !important;
    border-inline-start: 0 !important;
    border-left: 0 !important;
    padding: 26px 30px 20px !important;
    width: 315px !important;
}

/* Full height dividers between columns - desktop only */
.mainmenu ul > li > .mega-menu-pages .mega-menu-pages-single {
    position: relative;
    align-self: stretch !important;
    -webkit-border-start: 0 !important;
    border-inline-start: 0 !important;
}

.mainmenu ul > li > .mega-menu-pages .mega-menu-pages-single:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--tj-color-border-1);
}

/* Mobile menu - no borders and no pseudo elements */
.mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single {
    position: relative;
    align-self: stretch !important;
    -webkit-border-start: 0 !important;
    border-inline-start: 0 !important;
    border-left: 0 !important;
}

/* Remove pseudo-element from mobile menu - all variations */
.mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single::before,
.mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single:not(:first-child)::before,
.mobile_menu .mega-menu-pages .mega-menu-pages-single::before,
.mobile_menu .mega-menu-pages-single::before,
.hamburger_menu .mega-menu-pages .mega-menu-pages-single::before,
.hamburger_menu .mega-menu-pages-single::before {
    content: none !important;
    display: none !important;
}

/* Also remove default border-inline-start in mobile */
.mobile_menu .mega-menu-pages .mega-menu-pages-single,
.hamburger_menu .mega-menu-pages .mega-menu-pages-single {
    -webkit-border-start: 0 !important;
    border-inline-start: 0 !important;
    border-left: 0 !important;
}

/* Align all columns from the top */
.mega-menu-pages .mega-menu-wrapper {
    align-items: stretch !important;
}

/* 3-column mega menu width (Sikari Nail Academy block hidden) */
.mainmenu ul > li > .mega-menu-pages:not(.mega-menu-training),
.mobile_menu ul > li > .mega-menu-pages:not(.mega-menu-training) {
    width: 945px !important;
    max-width: 945px !important;
}

/* Prevent line breaks in menu items */
.mega-menu-pages .mega-menu-list a {
    white-space: nowrap;
}

/* Training menu - 2 columns with proper width */
.mainmenu ul > li > .mega-menu-training.mega-menu-pages,
.mobile_menu ul > li > .mega-menu-training.mega-menu-pages {
    width: 650px !important;
    max-width: 650px !important;
}

.mega-menu-training .mega-menu-wrapper {
    width: 650px !important;
    max-width: 650px !important;
}

.mega-menu-training .mega-menu-pages-single {
    width: 325px !important;
}

.mega-menu-training .mega-menu-pages-single:last-child {
    width: 325px !important;
    padding: 26px 30px 20px !important;
}

@media only screen and (max-width: 991px) {
    .mainmenu ul > li > .mega-menu-pages .mega-menu-pages-single:not(:first-child)::before,
    .mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single:not(:first-child)::before {
        display: none !important;
    }

    .mainmenu ul > li > .mega-menu-pages .mega-menu-pages-single:last-child,
    .mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single:last-child {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Remove all borders in mobile view */
    .mobile_menu ul > li > .mega-menu-pages .mega-menu-pages-single,
    .hamburger_menu .mega-menu-pages .mega-menu-pages-single,
    .mobile_menu .mega-menu-pages-single,
    .hamburger-area .mega-menu-pages .mega-menu-pages-single {
        -webkit-border-start: 0 !important;
        border-inline-start: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .mega-menu-pages .mega-menu-list a {
        white-space: normal;
    }

    .mainmenu ul > li > .mega-menu-training.mega-menu-pages,
    .mobile_menu ul > li > .mega-menu-training.mega-menu-pages {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mega-menu-training .mega-menu-wrapper {
        max-width: 100%;
    }

    .mega-menu-training .mega-menu-pages-single,
    .mega-menu-training .mega-menu-pages-single:last-child {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* Blog/Course detail - image full width within column */
.post-details-wrapper .blog-images img {
    width: 100%;
}
