/**
 * CJ Travels Elementor Widgets CSS
 * Styles for custom Elementor widgets
 */

/* ============================================
   Hero Search Modal Styles
   ============================================ */

/* Utility class for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Search Form Wrapper - Center alignment */
.cj-hero-search-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.cj-hero-search-form-wrapper .col-12,
.cj-hero-search-form-wrapper .col-lg-10,
.cj-hero-search-form-wrapper .col-xl-9 {
    display: flex;
    justify-content: center;
}

/* Search Trigger Button */
/* High specificity to override theme button styles */
.home-banner button.cj-hero-search-trigger,
.inner-banner button.cj-hero-search-trigger,
button.cj-hero-search-trigger.cj-hero-search-trigger,
.cj-hero-search-trigger.cj-hero-search-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    background-color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    margin-left: 0;
    color: inherit;
}

/* Override .home-banner button:hover and other theme styles */
.home-banner button.cj-hero-search-trigger:hover,
.inner-banner button.cj-hero-search-trigger:hover,
button.cj-hero-search-trigger.cj-hero-search-trigger:hover,
.cj-hero-search-trigger.cj-hero-search-trigger:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
    background-color: #ffffff;
    border: none;
    color: inherit;
}

.home-banner button.cj-hero-search-trigger:focus,
.inner-banner button.cj-hero-search-trigger:focus,
button.cj-hero-search-trigger.cj-hero-search-trigger:focus,
.cj-hero-search-trigger.cj-hero-search-trigger:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    background: #ffffff;
    background-color: #ffffff;
    border: none;
}

.cj-hero-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff6100;
    width: 24px;
    height: 24px;
}

.cj-hero-search-icon svg {
    width: 20px;
    height: 20px;
}

.cj-hero-search-trigger-text {
    flex: 1;
    color: #6b7280;
    font-size: 16px;
    font-weight: 400;
}

.cj-hero-search-trigger-btn {
    flex-shrink: 0;
    background: #ff6100;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.2s ease;
}

.cj-hero-search-trigger-btn:hover {
    background: #065f46;
}

/* Modal Container */
.cj-hero-search-modal {
    position: fixed;
    top: 130px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cj-hero-search-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Overlay */
.cj-hero-search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    z-index: 999998;
}

/* Modal Box */
.cj-hero-search-modal-box {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: auto;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 999999;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.cj-hero-search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
}

.cj-hero-search-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.cj-hero-search-modal-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Search Form */
.cj-hero-search-form {
    margin-bottom: 24px;
    flex-shrink: 0;
}

/* Search Bar */
.cj-hero-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

.cj-hero-search-bar:focus-within {
    border-color: #3b82f6;
    background: #ffffff;
}

.cj-hero-search-bar .cj-hero-search-icon {
    color: #9ca3af;
}

/* Search Input */
.cj-hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.cj-hero-search-input::placeholder {
    color: #9ca3af;
}

.cj-hero-search-input:focus {
    outline: none;
}

/* Search Button */
.cj-hero-search-btn {
    flex-shrink: 0;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.cj-hero-search-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.cj-hero-search-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.cj-hero-search-btn:active {
    transform: translateY(0);
}

/* Popular Searches */
.cj-hero-popular-searches {
    margin-top: 24px;
    flex-shrink: 0;
}

.cj-hero-popular-heading {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cj-hero-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Popular Tag */
.cj-hero-popular-tag {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    color: #374151;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cj-hero-popular-tag:hover {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}

.cj-hero-popular-tag:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.cj-hero-popular-tag:active {
    transform: translateY(0);
}

/* Search Results */
.cj-hero-search-results {
    margin-top: 24px;
    max-height: 400px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.cj-hero-search-results:empty {
    display: none;
}

/* Loading State */
.cj-hero-search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* No Results */
.cj-hero-search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Results List */
.cj-hero-search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Result Item */
.cj-hero-search-result-item {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.cj-hero-search-result-item:last-child {
    border-bottom: none;
}

.cj-hero-search-result-item:hover {
    background: #f9fafb;
}

.cj-hero-search-result-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cj-hero-search-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cj-hero-search-result-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.cj-hero-search-result-item a:hover .cj-hero-search-result-title {
    color: #3b82f6;
}

.cj-hero-search-result-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Body class when modal is open (prevent scroll) */
body.cj-hero-search-modal-open {
    overflow: hidden;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .cj-hero-search-modal {
        align-items: flex-start;
    }

    .cj-hero-search-modal-box {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 60px 20px 20px;
        overflow-y: auto;
    }

    .cj-hero-search-modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 24px;
        background: #ffffff;
        color: #374151;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }

    .cj-hero-search-modal-close:hover {
        background: #f9fafb;
        color: #111827;
    }

    .cj-hero-search-trigger {
        padding: 10px 16px;
        border-radius: 40px;
    }

    .cj-hero-search-trigger-text {
        font-size: 14px;
    }

    .cj-hero-search-trigger-btn {
        padding: 8px 18px;
        font-size: 11px;
    }

    .cj-hero-search-form {
        margin-bottom: 20px;
    }

    .cj-hero-search-bar {
        padding: 10px 12px;
        gap: 10px;
    }

    .cj-hero-search-input {
        font-size: 16px;
        padding: 6px 0;
    }

    .cj-hero-search-btn {
        padding: 8px 18px;
        font-size: 12px;
        min-width: 80px;
    }

    .cj-hero-popular-searches {
        margin-top: 20px;
    }

    .cj-hero-popular-heading {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .cj-hero-popular-tags {
        gap: 6px;
    }

    .cj-hero-popular-tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    .cj-hero-search-results {
        margin-top: 20px;
        max-height: calc(100vh - 300px);
    }

    .cj-hero-search-results-count {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cj-hero-search-result-item {
        padding: 12px;
    }

    .cj-hero-search-result-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .cj-hero-search-result-type {
        font-size: 10px;
        padding: 2px 6px;
        margin-left: 6px;
    }

    .cj-hero-search-result-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    .cj-hero-search-loading,
    .cj-hero-search-no-results {
        padding: 30px 16px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cj-hero-search-modal {
        align-items: flex-start;
    }

    .cj-hero-search-modal-box {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 56px 16px 16px;
        overflow-y: auto;
    }

    .cj-hero-search-modal-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        background: #ffffff;
        color: #374151;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }

    .cj-hero-search-modal-close:hover {
        background: #f9fafb;
        color: #111827;
    }

    .cj-hero-search-trigger {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 30px;
    }

    .cj-hero-search-trigger-text {
        font-size: 13px;
    }

    .cj-hero-search-trigger-btn {
        padding: 6px 14px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .cj-hero-search-form {
        margin-bottom: 16px;
    }

    .cj-hero-search-bar {
        flex-direction: row;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .cj-hero-search-bar .cj-hero-search-icon {
        width: 20px;
        height: 20px;
    }

    .cj-hero-search-bar .cj-hero-search-icon svg {
        width: 18px;
        height: 18px;
    }

    .cj-hero-search-input {
        font-size: 16px;
        padding: 4px 0;
    }

    .cj-hero-search-btn {
        padding: 8px 16px;
        font-size: 11px;
        min-width: 70px;
        border-radius: 6px;
    }

    .cj-hero-popular-searches {
        margin-top: 16px;
    }

    .cj-hero-popular-heading {
        font-size: 12px;
        margin-bottom: 8px;
        letter-spacing: 0.3px;
    }

    .cj-hero-popular-tags {
        gap: 6px;
    }

    .cj-hero-popular-tag {
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 16px;
    }

    .cj-hero-search-results {
        max-height: calc(100vh - 260px);
        margin-top: 16px;
    }

    .cj-hero-search-results-count {
        font-size: 12px;
        margin-bottom: 10px;
        padding: 0 4px;
        color: #6b7280;
    }

    .cj-hero-search-result-item {
        padding: 10px 8px;
        border-bottom: 1px solid #f3f4f6;
    }

    .cj-hero-search-result-item:last-child {
        border-bottom: none;
    }

    .cj-hero-search-result-title {
        font-size: 14px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .cj-hero-search-result-type {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 4px;
        border-radius: 3px;
    }

    .cj-hero-search-result-excerpt {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
        color: #9ca3af;
    }

    .cj-hero-search-loading,
    .cj-hero-search-no-results {
        padding: 24px 12px;
        font-size: 14px;
    }
}

/* Extra small mobile (< 375px) */
@media (max-width: 374px) {
    .cj-hero-search-modal-box {
        padding: 52px 12px 12px;
    }

    .cj-hero-search-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .cj-hero-search-trigger {
        padding: 7px 10px;
    }

    .cj-hero-search-trigger-text {
        font-size: 12px;
    }

    .cj-hero-search-trigger-btn {
        padding: 5px 12px;
        font-size: 9px;
    }

    .cj-hero-search-bar {
        padding: 7px 10px;
    }

    .cj-hero-search-input {
        font-size: 16px;
    }

    .cj-hero-search-btn {
        padding: 7px 12px;
        font-size: 10px;
        min-width: 60px;
    }

    .cj-hero-popular-heading {
        font-size: 11px;
    }

    .cj-hero-popular-tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    .cj-hero-search-result-title {
        font-size: 13px;
    }

    .cj-hero-search-result-excerpt {
        font-size: 11px;
    }

    .cj-hero-search-results {
        max-height: calc(100vh - 240px);
    }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

/* Ensure focus is visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ensure minimum touch target size */
@media (pointer: coarse) {
    .cj-hero-search-btn,
    .cj-hero-popular-tag,
    .cj-hero-search-modal-close {
        min-height: 44px;
        min-width: 44px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cj-hero-search-trigger {
        border-width: 3px;
    }

    .cj-hero-search-bar {
        border-width: 3px;
    }

    .cj-hero-search-modal-close {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cj-hero-search-modal,
    .cj-hero-search-trigger,
    .cj-hero-search-btn,
    .cj-hero-popular-tag,
    .cj-hero-search-modal-close,
    .cj-hero-search-result-item {
        transition: none;
    }
}

/* ============================================
   One Header Menu
   ============================================ */

.cj-one-header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.cj-one-nav {
    position: relative;
}

/* Prevent body scroll when mobile menu is open */
body.cj-menu-open {
    overflow: hidden;
}

.cj-one-nav .cj-one-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
    max-width: 100%;
}

.cj-one-nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.cj-one-logo {
    display: inline-flex;
    align-items: center;
}

.cj-one-logo img {
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hamburger – hidden on desktop */
.cj-one-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    gap: 5px;
}

.cj-one-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
}

.cj-one-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cj-main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    background: #ffffff;
    border-radius: 4px;
}

.cj-nav-item {
    position: relative;
}

.cj-nav-link,
.cj-nav-link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    border: none;
    background: none;
    cursor: pointer;
}

.cj-nav-link--dropdown .cj-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.cj-nav-item.active .cj-chevron-down {
    transform: rotate(180deg);
}

/* Mega dropdown – hidden by default */
.cj-mega-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 280px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
}

/* Template dropdown - full width under header */
.cj-mega-dropdown.cj-mega-dropdown--template {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 800px;
    max-width: 90vw;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Position template dropdown relative to header */
.cj-one-header {
    position: relative;
}

/* Make nav item with template dropdown static so dropdown can be positioned relative to header */
.cj-nav-item[data-dropdown-type="template"] {
    position: static;
}

@media (min-width: 992px) {
    .cj-nav-item.cj-has-dropdown:hover .cj-mega-dropdown,
    .cj-nav-item.cj-has-dropdown.active .cj-mega-dropdown,
    .cj-mega-dropdown.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        max-height: 800px;
    }
}

.cj-mega-inner {
    display: flex;
    background: #fff;
    color: #1a1a1a;
}

.cj-mega-list {
    padding: 1rem 1.25rem;
    min-width: 200px;
}

.cj-mega-list-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cj-mega-list-ul li {
    margin: 0;
}

.cj-mega-list-ul a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: inherit;
    text-decoration: none;
}

.cj-mega-list-ul a:hover {
    text-decoration: underline;
}

.cj-chevron--green {
    color: #1a3d28;
    font-size: 0.75em;
}

/* Right column: What's Hot grid */
.cj-mega-hot {
    padding: 1rem 1.25rem;
    border-left: 1px solid #eee;
    min-width: 220px;
}

.cj-mega-hot-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.cj-mega-hot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.cj-mega-hot-item {
    display: flex;
    align-items: flex-end;
    min-height: 80px;
    padding: 0.5rem;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cj-mega-hot-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Right column: CTA panel */
.cj-mega-panel {
    position: relative;
    min-width: 260px;
    min-height: 180px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-end;
    border-left: 1px solid #eee;
}

.cj-mega-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.cj-mega-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cj-mega-panel-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.cj-mega-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cj-mega-panel-desc {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.cj-mega-panel-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #FF6100;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.cj-mega-panel-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Template dropdown */
.cj-mega-template {
    background: #fff;
    color: #1a1a1a;
    padding: 0;
    min-width: 100%;
    width: 100%;
}

.cj-mega-template .elementor-widget-wrap {
    animation: fadeInUp 0.3s ease;
}

.cj-mega-template .elementor-section,
.cj-mega-template .elementor-container {
    max-width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA button in header */
.cj-one-cta {
    margin-left: auto;
    flex-shrink: 0;
}

.cj-one-header .cj-one-cta-btn,
a.cj-one-cta-btn.cj-one-cta-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #FF6100;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.cj-one-header .cj-one-cta-btn:hover,
a.cj-one-cta-btn.cj-one-cta-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Mobile */
@media (max-width: 991px) {
    .cj-one-header {
        position: relative;
    }

    .cj-one-inner {
        flex-wrap: nowrap;
        position: relative;
    }

    .cj-one-nav-left {
        flex: 0 0 auto;
        gap: 0;
    }

    .cj-one-toggler {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    .cj-one-cta {
        display: none;
    }

    .cj-one-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        background: inherit;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        order: 4;
        width: 100%;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .cj-one-menu.is-open {
        max-height: 85vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .cj-main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        border-radius: 0;
        transform: translateY(-10px);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cj-one-menu.is-open .cj-main-nav {
        transform: translateY(0);
    }

    .cj-nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .cj-one-menu.is-open .cj-nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .cj-one-menu.is-open .cj-nav-item:nth-child(1) { transition-delay: 0.05s; }
    .cj-one-menu.is-open .cj-nav-item:nth-child(2) { transition-delay: 0.1s; }
    .cj-one-menu.is-open .cj-nav-item:nth-child(3) { transition-delay: 0.15s; }
    .cj-one-menu.is-open .cj-nav-item:nth-child(4) { transition-delay: 0.2s; }
    .cj-one-menu.is-open .cj-nav-item:nth-child(5) { transition-delay: 0.25s; }
    .cj-one-menu.is-open .cj-nav-item:nth-child(6) { transition-delay: 0.3s; }

    .cj-nav-link,
    .cj-nav-link--dropdown {
        padding: 0.75rem 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .cj-mega-dropdown,
    .cj-mega-dropdown.cj-mega-dropdown--template {
        position: static;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border-radius: 0;
        display: none;
        overflow: hidden;
        transform: none;
        background: rgba(0, 0, 0, 0.04);
        width: 100%;
        max-width: 100%;
        max-height: none;
        left: auto;
        top: auto;
    }

    .cj-mega-dropdown.cj-collapse-open {
        overflow-y: auto;
    }

    .cj-mega-template {
        width: 100%;
    }

    .cj-one-cta-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .cj-one-inner {
        padding: 0.5rem 1rem;
    }

    .cj-one-logo img {
        max-height: 40px;
    }

    .cj-one-toggler {
        width: 40px;
        height: 40px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .cj-one-inner {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .cj-one-logo img {
        max-height: 36px;
    }

    .cj-one-toggler {
        width: 36px;
        height: 36px;
        margin-right: 0;
    }

    .cj-one-toggler span {
        width: 20px;
    }

    .cj-nav-link,
    .cj-nav-link--dropdown {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }
}
