/* ==========================================================================
   Two Parts Slider - Exact Recreation from withhonor.org
   
   Z-Index Hierarchy (lowest to highest):
   - .two-parts-slider-holder: z-index: 1 (relative positioning)
   - .two-parts-slider-photos: z-index: -1 (background)
   - .two-parts-slider-photos img: z-index: 1
   - .two-parts-slider-photos:after: z-index: 5 (dark overlay)
   - .two-parts-slider-border: z-index: 5 (fixed border)
   - .part-text: z-index: 10 (text content)
   - Sticky elements: z-index: 99999 (forced above everything)
   ========================================================================== */

.two-parts-slider-holder {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #fff;
    height: 100vh;
    width: 100%;
}

@media (min-width: 1024px) {
    .two-parts-slider-holder {
        padding: 0;
        display: flex;
    }
}

.two-parts-slider-photos {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Position relative to viewport instead of holder */
}

.two-parts-slider-photos:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.two-parts-slider-photos .item {
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.has-animation.animated .two-parts-slider-photos .item.active {
    opacity: 1;
}

@media (min-width: 1024px) {
    .has-animation.animated .two-parts-slider-photos .item.active .part:nth-child(1) img {
        transform: translate(0, 0) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .has-animation.animated .two-parts-slider-photos .item.active .part:nth-child(2) img {
        transform: translate(3.5%, 0) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .two-parts-slider-photos .part {
        position: absolute;
        top: 0;
        overflow: hidden;
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .two-parts-slider-photos .part:nth-child(1) {
        width: 34.9%;
        left: 0;
    }
}

@media (min-width: 1024px) {
    .two-parts-slider-photos .part:nth-child(1) img {
        object-position: left center;
        transform: translate(0, -5%) scale(1.1);
        transition: transform 1.5s ease-in-out;
    }
}

@media (min-width: 1024px) {
    .two-parts-slider-photos .part:nth-child(2) img {
        object-position: -34.9vw center;
        transform: translate(0, 5%) scale(1.1);
        transition: transform 1.5s ease-in-out;
    }
}

/* Basic positioning for all screen sizes */
.two-parts-slider-photos .part {
    position: absolute;
    top: 0;
    overflow: hidden;
    height: 100%;
}

.two-parts-slider-photos .part:nth-child(1) {
    width: 35%;
    left: 0;
}

.two-parts-slider-border {
    position: absolute;
    top: 0;
    left: 35%;
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 5;
    pointer-events: none;
}

.two-parts-slider-photos .part:nth-child(2) {
    width: 65%;
    right: 0;
}

/* Text containers for both panels */
.part-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 100px;
    z-index: 10; /* Lower z-index to ensure sticky elements are visible */
    pointer-events: none; /* Text is decorative, no interaction needed */
}

/* Ensure text is visible above the fixed background */
.two-parts-slider-holder .part-text {
    pointer-events: none;
    z-index: 10;
}

.left-text {
    align-items: flex-end;
    padding-bottom: 50px;
}

.right-text {
    align-items: center;
}

.part-text p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Force sticky elements to appear above the slider - only when they should be visible */
.join-us-sticky-visible:not(.footer-visible) .join-us-sticky {
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Additional rule to ensure form is visible when not near footer */
body.join-us-sticky-visible:not(.footer-visible) .join-us-sticky {
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Hide form when footer is visible - respect original behavior */
.footer-visible .join-us-sticky {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
    z-index: 1 !important;
}

.footer-visible .show-join-us-sticky {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1 !important;
}

.join-us-sticky-hidden:not(.footer-visible) .show-join-us-sticky {
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.scrolled:not(.footer-visible) .show-join-us-sticky {
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure mobile sticky elements are also above slider when visible */
@media (max-width: 1023px) {
    .join-us-sticky-visible:not(.footer-visible) .join-us-sticky {
        z-index: 99999 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    body.scrolled:not(.footer-visible) .show-join-us-sticky {
        z-index: 99999 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Ensure navigation menu appears above sticky elements */
.menu {
    z-index: 100000 !important;
}

.menu-opened .menu {
    z-index: 100000 !important;
}

/* Force sticky elements to be below menu when menu is open */
.menu-opened .join-us-sticky,
.menu-opened .show-join-us-sticky {
    z-index: 1 !important;
}

.two-parts-slider-photos img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-in-out;
    max-width: 100vw;
    z-index: 1;
}

/* ==========================================================================
   Two Part Slider Multi - Multi-image version with looping
   ========================================================================== */

.two-part-slider-multi-holder {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #fff;
    height: 100vh;
    width: 100%;
}

@media (min-width: 1024px) {
    .two-part-slider-multi-holder {
        padding: 0;
        display: flex;
    }
}

.two-part-slider-multi-photos {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.two-part-slider-multi-photos:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.two-part-slider-multi-photos .item {
    opacity: 0;
    transition: opacity .5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.two-part-slider-multi-photos .item.active {
    opacity: 1;
}

@media (min-width: 1024px) {
    .has-animation.animated .two-part-slider-multi-photos .item.active .part:nth-child(1) img {
        transform: translate(0, 0) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .has-animation.animated .two-part-slider-multi-photos .item.active .part:nth-child(2) img {
        transform: translate(3.5%, 0) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .two-part-slider-multi-photos .part {
        position: absolute;
        top: 0;
        overflow: hidden;
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .two-part-slider-multi-photos .part:nth-child(1) {
        width: 35%;
        left: 0;
    }
}

@media (min-width: 1024px) {
    .two-part-slider-multi-photos .part:nth-child(1) img {
        object-position: left center;
        transform: translate(0, -5%) scale(1.1);
        transition: transform 1.5s ease-in-out;
    }
}

@media (min-width: 1024px) {
    .two-part-slider-multi-photos .part:nth-child(2) {
        width: 65%;
        right: 0;
    }
}

@media (min-width: 1024px) {
    .two-part-slider-multi-photos .part:nth-child(2) img {
        object-position: -34.9vw center;
        transform: translate(0, 5%) scale(1.1);
        transition: transform 1.5s ease-in-out;
    }
}

.two-part-slider-multi-border {
    position: absolute;
    top: 0;
    left: 35%;
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 5;
    pointer-events: none;
}

.two-part-slider-multi-photos .part:nth-child(2) {
    width: 65%;
    right: 0;
}

/* Text containers for both panels */
.two-part-slider-multi-holder .part-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 100px;
    z-index: 10;
    pointer-events: none;
}

.two-part-slider-multi-holder .left-text {
    align-items: flex-end;
    padding-bottom: 50px;
}

.two-part-slider-multi-holder .right-text {
    align-items: center;
}

.two-part-slider-multi-holder .part-text p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Slide info section (title and progress bar) */
.slide-info {
    position: absolute;
    bottom: 50px;
    left: 100px;
    right: 100px;
    z-index: 15;
    pointer-events: none;
}

.slide-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #DC1F34;
    width: 0%;
    transition: width linear;
    border-radius: 2px;
}

.two-part-slider-multi-photos img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-in-out;
    max-width: 100vw;
    z-index: 1;
}

/* ==========================================================================
   Timeline Flexible Content Block
   ========================================================================== */

.timeline-wrapper {
    position: relative;
    min-height: 400px;
}

/* Year Column - Left Side */
.timeline-year-column {
    position: sticky;
    top: 100px; /* Offset for header if needed */
    align-self: flex-start;
    padding-right: 20px;
    z-index: 10;
}

.timeline-year-link {
    display: block;
    color: #0e3a60;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.timeline-year-link:hover {
    color: #DC1F34;
    transform: translateX(5px);
}

.timeline-year-link.active {
    color: #DC1F34;
    font-weight: 700;
}

/* Timeline Content Column - Right Side */
.timeline-content-wrapper {
    position: relative;
}

.timeline-content {
    position: relative;
    padding-left: 20px;
}

/* Sticky positioning for timeline content */
@media (min-width: 768px) {
    .timeline-content-wrapper {
        position: sticky;
        top: 100px; /* Offset for header if needed */
        align-self: flex-start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* Timeline Items */
.timeline-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    scroll-margin-top: 120px; /* Offset for sticky header when scrolling */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-divider {
    margin: 30px 0 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Timeline Date */
.timeline-date {
    font-size: 16px;
    font-weight: 600;
    color: #0e3a60;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline Title */
.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: #0e3a60;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* Timeline Text Column */
.timeline-text-column {
    position: relative;
}

/* Timeline Text Wrapper */
.timeline-text-wrapper {
    margin-top: 15px;
}

/* Toggle Button */
.timeline-toggle-btn {
    background: transparent;
    border: 2px solid #0e3a60;
    color: #0e3a60;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-toggle-btn:hover {
    background: #0e3a60;
    color: #fff;
}

.timeline-toggle-btn[aria-expanded="true"] {
    background: #0e3a60;
    color: #fff;
}

.timeline-toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    display: inline-block;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.toggle-text {
    font-size: 14px;
}

/* Timeline Text Content */
.timeline-text-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #333;
    line-height: 1.8;
}

.timeline-text-content p {
    margin-bottom: 15px;
}

.timeline-text-content p:last-child {
    margin-bottom: 0;
}

/* Timeline Image Column */
.timeline-image-column {
    position: sticky;
    top: 100px; /* Match the timeline-content sticky position */
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-left: 20px;
}

@media (max-width: 767px) {
    .timeline-image-column {
        position: relative;
        top: auto;
        max-height: none;
        margin-top: 20px;
        padding-left: 0;
    }
}

.timeline-image-wrapper {
    position: relative;
    width: 100%;
}

.timeline-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .timeline-year-column {
        position: relative;
        top: auto;
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .timeline-year-link {
        display: inline-block;
        margin-right: 15px;
        padding: 5px 10px;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .timeline-content-wrapper {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }
    
    .timeline-item {
        scroll-margin-top: 20px;
    }
}



/* Join Us Sticky Form - EXACT styles from original theme */

.join-us-button {
    background: #de1e34;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "trendabold", sans-serif;
  text-transform: uppercase;
}

.join-us-button:hover {
    background: #c41e3a;
    transform: translateY(-2px);
}


.join-us-sticky {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

/* Mobile styles - EXACT from original */
@media (max-width: 1023px) {
    .join-us-sticky {
        height: calc((var(--vh, 1vh) * 100));
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        background: rgba(0, 0, 0, 0.5);
        z-index: 200;
    }
    
    .join-us-sticky-holder {
        position: relative;
    }
    
    .join-us-sticky-holder > .star {
        display: block;
        position: absolute;
        left: 15px;
        top: 15px;
    }
    
    .join-us-sticky-holder > .star path {
        fill-opacity: 1;
    }
}

/* Desktop styles - EXACT from original */
@media (min-width: 1024px) {
    .join-us-sticky-holder > .star {
        display: none;
    }
}

/* Join Us Sticky Inner - EXACT from original */
.join-us-sticky-inner {
    background-color: #F3F5F4;
    position: relative;
    transform: translateY(0);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

/* Mobile inner styles - EXACT from original */
@media (max-width: 1023px) {
    .join-us-sticky-inner {
        margin: 30px;
        padding: 30px;
        clip-path: polygon(32px 0%, 100% 0, 100% 100%, 0 100%, 0 37px);
        max-height: calc(100vh - 50px);
        max-height: calc((var(--vh, 1vh) * 100) - 60px);
        overflow-y: auto;
        transform: translateY(50px);
    }
    
    .join-us-sticky-inner .star {
        display: none;
    }
}

/* Desktop inner styles - EXACT from original */
@media (min-width: 1024px) {
    .join-us-sticky-inner {
        background: none;
        margin: 0 100px 30px;
    }
    
    .join-us-sticky-inner h4 {
        display: none;
    }
}

@media (min-width: 1200px) {
    .join-us-sticky-inner {
        margin: 0 115px 30px;
    }
}

@media (min-width: 1440px) {
    .join-us-sticky-inner {
        margin-bottom: 40px;
    }
}

@media (min-width: 1800px) {
    .join-us-sticky-inner {
        max-width: 1650px;
        margin: 0 auto 40px;
    }
}

/* Join Us Sticky Inner Elements - EXACT from original */
.join-us-sticky-inner h4 {
    color: #0E3A60;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.join-us-sticky-inner .star path {
    fill-opacity: 1;
}

/* Form Styles - EXACT from original */
.join-us-form {
    position: relative;
}

.join-us-form .star {
    position: absolute;
    top: -15px;
    left: -13px;
    z-index: 1;
}

@media (max-width: 1023px) {
    .join-us-form .star {
        top: -104px;
        left: -45px;
    }
}

.join-us-form .star path {
    fill-opacity: 1;
}

/* Desktop form styles - EXACT from original */
@media (min-width: 1024px) {
    .join-us-form .form-inner:before {
        content: '';
        position: absolute;
        width: 148px;
        height: 109px;
        pointer-events: none;
        background: url("img/stars-left.svg") 0 0/contain no-repeat;
        left: 0;
        bottom: 0;
        z-index: 1;
    }
    
    .join-us-form .form-inner:after {
        content: '';
        position: absolute;
        width: 148px;
        height: 109px;
        pointer-events: none;
        background: url("img/stars-right.svg") 0 0/contain no-repeat;
        right: -40px;
        top: -5px;
        z-index: 1;
    }
    
    .join-us-form .form-inner {
        clip-path: polygon(34px 0%, 100% 0, 100% 100%, 0 99%, 0 28%);
        background-color: #F3F5F4;
        flex-grow: 1;
        padding: 15px 15px 15px 34px;
        height: 140px;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .join-us-form .form-inner:after {
        right: -25px;
        top: 0;
        background-size: 86%;
    }
    
    .join-us-form .form-inner {
        padding: 15px 20px 15px 38px;
        height: 140px;
    }
}

@media (min-width: 1440px) {
    .join-us-form .form-inner {
        padding: 15px 20px 15px 40px;
        height: 140px;
    }
}

/* Ensure form inner has proper styling */
.join-us-form .form-inner {
    background-color: #F3F5F4;
    padding: 15px 15px 15px 34px;
    border-radius: 0;
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
}

/* Form Inner */
.form-inner {
    position: relative;
}

/* Form Inputs - Compact spacing for 140px height */
.form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .form-inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Desktop form layout - flexbox */
@media (min-width: 1024px) {
    .join-us-form form {
        display: flex;
    }
}

.form-group {
    margin-bottom: 8px;
}

    .form-group {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex
;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        margin: 0 -10px;
    }

.form-item {
    position: relative;
}

    .join-us-form .form-inputs {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex
;
        gap: 20px;
    }

.form-item input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-item input:focus {
    outline: none;
    border-color: #0e3a60;
}

.form-item input::placeholder {
    color: #9ca3af;
}

/* Checkbox Styles - EXACT from original */
.form-item.has-checkbox {
    margin-top: 20px;
}

.required {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
    font-style: italic;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form-control {
    display: block;
}

.wpcf7-list-item {
    display: block;
}

.wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.wpcf7-list-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #0e3a60;
}

.wpcf7-list-item-label {
    flex: 1;
}

.wpcf7-list-item-label a {
    color: #0e3a60;
    text-decoration: none;
    font-weight: 500;
}

.wpcf7-list-item-label a:hover {
    text-decoration: underline;
}

/* Hide Join Us Button - EXACT from original */
.hide-join-us-sticky {
    position: absolute;
    right: 13px;
    top: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .hide-join-us-sticky {
        right: -28px;
        top: 5px;
    }
}

@media (min-width: 1800px) {
    .hide-join-us-sticky {
        right: -25px;
    }
}

.hide-join-us-sticky path {
    fill: #DC1F34;
    transition: fill 0.5s ease;
}

.no-touch .hide-join-us-sticky:hover path {
    fill: #007DB6;
}

/* Show Join Us Button - EXACT from original */
.show-join-us-sticky {
    padding: 15px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: background-color 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
    font-family: "trendabold", sans-serif;
  text-transform: uppercase;
  border-radius: 0px!important;
}

.show-join-us-sticky.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .show-join-us-sticky {
        width: 100%;
        min-height: 60px;
        left: 0;
        top: calc(100vh - 60px);
        top: calc((var(--vh, 1vh) * 100) - 60px);
        bottom: auto;
    }
}

@media (min-width: 1024px) {
    .show-join-us-sticky {
        width: 82px;
    }
}

@media (min-width: 1200px) {
    .show-join-us-sticky {
        width: 110px;
    }
}

@media (min-width: 1440px) {
    .show-join-us-sticky {
        padding: 15px;
    }
}

/* Animation Classes - EXACT from original */
.join-us-sticky.has-animation {
    transform: translateY(50px);
    transition: opacity 1s, visibility 1s, transform 1s;
}

@media (min-width: 1024px) {
    .join-us-sticky.has-animation {
        transform: translateY(50px);
        transition: opacity 1s, visibility 1s, transform 1s;
    }
    
    .join-us-sticky.animated {
        transform: translateY(0);
    }
}

/* Visibility States - EXACT from original */
.join-us-sticky-hidden .join-us-sticky {
    pointer-events: none;
}

.join-us-sticky-hidden .join-us-sticky.animated {
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
}

.join-us-sticky-visible .join-us-sticky {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .join-us-sticky-visible .join-us-sticky {
        transform: translateY(0);
    }
}

.join-us-sticky-visible .join-us-sticky .join-us-sticky-inner {
    transform: translateY(0);
}

/* Hero Button Hide on Desktop - EXACT from original */
@media (min-width: 1024px) {
    .hero-section .join-us-button {
        display: none;
    }
}

.join-us-sticky-visible .hero-section .join-us-button {
    opacity: 0;
    visibility: hidden;
}

/* Mobile Scrolled State - EXACT from original */
@media (max-width: 1023px) {
    .join-us-sticky-visible {
        overflow: hidden;
    }
}

body.scrolled .join-us-sticky {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.scrolled .join-us-sticky .join-us-sticky-inner {
    transform: translateY(0);
}

/* Show button visibility - EXACT from original */
@media (min-width: 1024px) {
    .join-us-sticky-hidden .button.show-join-us-sticky {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 1023px) {
    .scrolled .button.show-join-us-sticky {
        opacity: 1;
        visibility: visible;
    }
}

.join-us-sticky-visible .button.show-join-us-sticky {
    opacity: 0;
    visibility: hidden;
}
