.tabbed-community-slider-block {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

/* Heading Styles */
.tcs-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tcs-heading-content {
    width: 65%;
    text-align: left;
}

.tcs-heading-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.tcs-heading-copy {
    font-size: 1.1rem;
    line-height: 1.6;
}

.tcs-heading-button {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Tab Styles */
.tcs-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
}

.tcs-tab {
    background: none;
    border: none;
    padding: 15px;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    position: relative;
    transition: color 0.3s ease;
    z-index: 2;
    font-family: var(--font1);
    font-weight: 400;
}

/* Card count styling */
.tcs-tab span {
    font-size: 0.8em;
    opacity: 0.7;
    font-weight: 400;
    margin-left: 5px;
}

.tcs-tab:hover {
    color: var(--tertiary);
}

/* Replace the single line with two separate lines */
.tcs-tab.active:before,
.tcs-tab.active:after {
    content: "";
    position: absolute;
    width: 2px;
    height: 20px;
    /* Length of each line */
    background: var(--tertiary);
    left: 50%;
}

.tcs-tab.active:before {
    top: -15px;
    /* Position above text */
}

.tcs-tab.active:after {
    bottom: -15px;
    /* Position below text */
}

.tcs-tab.active {
    color: var(--tertiary);
}

/* Slider Styles */
.tcs-tab-content {
    display: none;
    position: relative;
}

.tcs-tab-content.active {
    display: block;
}

.tcs-slider-controls {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 10;
    justify-content: center;
    padding-top: 15px;
}

.tcs-slider {
    position: relative;
    margin-bottom: 20px;
}

.tcs-slide {
    padding: 15px;
}

/* Fixed width for non-slider cards */
.no-slider .tcs-slide {
    width: calc(33.333% - 20px);
    max-width: 400px;
    margin-bottom: 30px;
}

/* Special case for single card */
.no-slider.single-card .tcs-slide {
    width: calc(33.333% - 20px);
    max-width: 400px;
}

/* Desktop right edge extension (1199px and up) */
@media (min-width: 1200px) {
    .tabbed-community-slider-block .container-fluid-right {
        max-width: 100%;
        /*padding-right: 0;*/
        padding: 0 15px;
    }

    .tabbed-community-slider-block .tcs-heading,
    .tabbed-community-slider-block .tcs-tabs {
        margin-left: auto;
        margin-right: auto;
        /*padding-left: 15px;
        padding-right: 15px;*/
        padding: 0 15px;
    }

    .tabbed-community-slider-block .tcs-slider {
        /*padding-right: 0;
        margin-right: -15px;*/
        margin: 0;
        padding: 0 15px;
    }
}

.tcs-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}

.tcs-card:hover {
    transform: scale(1.03);
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}

/* Card Image */
.tcs-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.tcs-card-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Card Logo */
.tcs-card-logo {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px;
}

.tcs-card-logo img {
    max-width: 60%;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    position: absolute;
    top: 120px;
}

/* Card Subtitle */
.tcs-card-subtitle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    /* width: 100%; */
    background-color: rgb(255 255 255 / 74%);
    padding: 5px 10px;
    text-align: center;
    font-weight: 600;
    margin: auto;
    text-align: center;
    border-radius: 5px;
    transform: translateX(-50%);
}

/* Card Content */
.tcs-card-content {
    border: 1px solid #E3E3E3;
    border-radius: 10px;
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.tcs-card-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tcs-card-copy {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Link */
.tcs-card-link {
    color: var(--secondary);
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    border-bottom: 2px solid var(--tertiary);
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: fit-content;
    margin: auto;
    text-align: center;
}

.tcs-card-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tcs-card-link:hover {
    color: var(--tertiary);
}

.tcs-card-link:hover i {
    transform: translateX(5px);
}

/* Progress Bar */
.tcs-progress-container {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
    margin-right: 30px;
    margin-left: 15px;
}

.tcs-progress-bar {
    height: 100%;
    background-color: var(--tertiary);
    width: 0;
    transition: width 0.3s ease;
}

/* Arrow Styles */
.tcs-arrow {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.tcs-arrow i {
    font-size: 24px;
    color: var(--primary);
}

/* Slick Overrides */
.slick-initialized .slick-slide {
    height: auto;
    height: inherit !important;
}

.slick-track {
    display: flex !important;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .tcs-heading-content {
        width: 60%;
    }
}

@media (max-width: 991px) {
    .tcs-heading {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tcs-heading-content {
        width: 100%;
        text-align: center;
    }

    .tcs-heading-button {
        justify-content: center;
    }

    .tabbed-community-slider-block {
        padding: 40px 0;
    }

    .tcs-tabs {
        gap: 15px;
        margin-bottom: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tcs-tab.active:before,
    .tcs-tab.active:after {
        display: none;
    }

    .tcs-tab {
        padding: 10px 15px;
        font-size: 18px;
        text-decoration: none;
        color: var(--primary);
        border-bottom: 2px solid transparent;
        background: transparent;
        width: auto;
    }

    .tcs-tab.active {
        color: var(--secondary);
        border-bottom: 2px solid var(--secondary);
        background: transparent;
    }

    .tcs-card-content {
        padding: 20px;
    }

    /* Fix for mobile tab switching */
    .tcs-tab-content {
        margin-top: 20px;
        min-height: 200px;
    }

    /* Ensure cards have consistent width on mobile */
    .no-slider .tcs-slide {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 767px) {
    .tcs-heading-title {
        font-size: 2rem;
    }

    .tcs-slider.no-slider {
        display: block !important;
    }

    .tcs-tab {
        font-size: 16px;
        margin: 0 10px;
        padding: 8px 10px;
    }

    .tcs-card-content {
        padding: 15px;
    }

    /* Ensure slider controls are properly positioned */
    .tcs-slider-controls {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 15px;
    }

    /* Adjust card spacing */
    .tcs-slide {
        padding: 10px 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hide progress bar on mobile */
    .tcs-progress-container {
        display: none !important;
    }

    /* Make cards full width on mobile */
    .no-slider .tcs-slide,
    .no-slider.single-card .tcs-slide {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure slick slider shows full width cards */
    .slick-slide {
        width: 100% !important;
    } 
}

#opulence-signup-form .form-container {
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
}
.tabbed-community-slider-block .tcs-slider .slick-list {
    padding: 0 15px; /* left + right gutter */
    box-sizing: border-box;
}