/* ============================================
   Algorithms Archive Styles
   Mobile First Approach
   ============================================ */

/* Masthead Section */
.algorithms-archive__masthead {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.algorithms-archive__masthead-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.algorithms-archive__masthead-caption {
    position: relative;
    color: #346E4A;
    font-size: 12px;
    font-weight: bold;
    background: transparent;
    text-align: center;
    display: block;
    margin: 25px 0;  
}

.algorithms-archive__masthead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.algorithms-archive__masthead-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 20px;
    /* background: rgba(0, 0, 0, 0.4); */
}

.algorithms-archive__masthead-text {
    font-family: 'clarimo_ud_pemedium', sans-serif;
}

/* Mobile-specific masthead styles */
@media (max-width: 767px) {
    .algorithms-archive__masthead {
        flex-direction: column;
        min-height: auto;
        align-items: stretch;
    }
    
    .algorithms-archive__masthead-image {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        z-index: 1;
    }
    
    .algorithms-archive__masthead-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .algorithms-archive__masthead-content {
        position: relative;
        background: #4a4a4a;
        padding: 30px 20px;
    }
}

.algorithms-archive__masthead-back {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    width: fit-content;
}

.algorithms-archive__masthead-back:hover {
    color: #cccccc;
}

@media (min-width: 768px) {
    .algorithms-archive__masthead-back {
        display: none;
    }
}

.algorithms-archive__masthead-title {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
}

.algorithms-archive__masthead-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

@media (min-width: 1900px) {
    .algorithms-archive__masthead-text {
        max-width: 990px;
    }
}

.algorithms-archive__masthead-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #01916D;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.algorithms-archive__masthead-button:hover {
    background-color: #017a5a;
    color: #ffffff;
}

/* Filter Section */
.algorithms-archive__filters {
    background-color: #efefef;
    padding: 30px 20px;
}

.algorithms-archive__filters-container {
    background-color: #ffffff;
    padding: 22px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.algorithms-archive__filters-title {
    color: #000000;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.algorithms-archive__filters-title::before {
    content: url(https://hcusfujifilm.webpagefxstage.com/wp-content/uploads/2025/12/filter-algorithms.svg);
    width: 30px;
    height: 30px;
    margin-top: -6px;
}

.algorithms-archive__filters-title .dashicons {
    color: #000000;
    font-size: 22px;
    width: 20px;
    height: 20px;
}

.algorithms-archive__filters-group {
    margin-bottom: 20px;
}

.algorithms-archive__filters-actions {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.algorithms-archive__clear-filters {
    color: #01916D;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: none;
    font-family: 'clarimo_ud_pedemibold', sans-serif;
    letter-spacing: 0.1em;
}

.algorithms-archive__clear-filters::before {
    content: url(https://hcusfujifilm.webpagefxstage.com/wp-content/uploads/2025/12/clear-filters.svg);
    width: 11px;
    height: 18px;
}

.algorithms-archive__clear-filters .dashicons {
    color: #01916D;
    font-size: 18px;
    width: 16px;
    height: 16px;
    transition: color 0.3s ease;
}

.algorithms-archive__clear-filters:hover {
    background: none;
    color: #346e4a;
}

.algorithms-archive__clear-filters:hover .dashicons {
    color: #017a5a;
}

.algorithms-archive__filter-accordion {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.algorithms-archive__filter-accordion:last-child {
    border-bottom: none;
}

.algorithms-archive__filter-accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.algorithms-archive__filter-accordion-header:hover {
    color: #01916D;
}

.algorithms-archive__filter-accordion-header .algorithms-archive__filter-label {
    color: #000000;
    font-family: 'clarimo_ud_pebold', sans-serif;
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}

.algorithms-archive__filter-accordion-header:hover .algorithms-archive__filter-label {
    color: #01916D;
}

.algorithms-archive__filter-accordion-icon {
    color: #01916D;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.algorithms-archive__filter-accordion-content {
    padding-bottom: 20px;
    overflow: hidden;
}

.algorithms-archive__filter-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.algorithms-archive__filter-label {
    color: #000000;
    font-weight: bold;
    font-size: 16px;
}

.algorithms-archive__filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.algorithms-archive__filter-option {
    background-color: #ffffff;
    border: 1px solid #b4b4b4;
    color: #000000;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.algorithms-archive__filter-option-color-square {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.algorithms-archive__filter-option:hover {
    border: 1px solid #01916d;
    background: #e5f4f1;
    color: #01916d;
}

.algorithms-archive__filter-option.is-active {
    background-color: #e5f4f1;
    border: 1px solid #e5f4f1;
      color: #000000;
}

/* White checkmark inside colored box when active */
.algorithms-archive__filter-option.is-active .algorithms-archive__filter-option-color-square::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.algorithms-archive__filter-show-all {
    background-color: transparent;
    border: 1px solid #01916D;
    color: #01916D;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.algorithms-archive__filter-show-all:hover {
    background-color: #01916D;
    color: #ffffff;
}

/* Algorithm Cards Section */
.algorithms-archive__cards-container {
    padding: 0 0 40px 0;
}

.algorithms-archive__cards {
    background-color: #efefef;
    padding: 0 20px;
}

.algorithms-archive__cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 40px;
}

.algorithms-archive__cards-grid > div {
    display: flex;
    height: 100%;
}

.algorithm-card {
    background-color: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.algorithm-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-bottom: none;
}

.algorithm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.algorithm-card__logo {
    margin-bottom: 10px;
    max-width: 120px;
    height: auto;
}

.algorithm-card__logo-img {
    max-width: 100%;
    height: auto;
}

.algorithm-card__title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: bold;
    color: #000000;
    margin: 0;
    position: relative;
    transition: color 0.3s ease;
}

.algorithm-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #01916D;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.algorithm-card:hover .algorithm-card__title {
    color: #01916D;
}

.algorithm-card:hover .algorithm-card__title::after {
    width: 100%;
}

.algorithm-card__intro {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 0;
    flex-shrink: 1;
    min-height: 0;
}

.algorithm-card__meta {
    width: 100%;
    margin-bottom: 20px;
    flex-grow: 0;
    flex-shrink: 1;
    margin-top: auto;
}

.algorithm-card__meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.algorithm-card__meta-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.algorithm-card__meta-item:last-child {
    border-top: none;
}

.algorithm-card__meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items:flex-start;
}

.algorithm-card__meta-type {
    font-size: 16px;
    color: #01916D;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.algorithm-card__meta-label {
    font-size: 16px;
    color: #5c5c5c;
    font-weight: bold;
}

.algorithm-card__meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.algorithm-card__icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.algorithm-card__clearance {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
    text-align: center;
}

.algorithm-card__button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #01916D;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    flex-shrink: 0;
    pointer-events: none;
}

.algorithm-card:hover .algorithm-card__button {
    background-color: #017a5a;
}

/* Load More Section */
.algorithms-archive__load-more {
    text-align: center;
    margin-top: 40px;
}

.algorithms-archive__load-more-counter {
    color: #000000;
    font-size: 14px;
    margin-bottom: 15px;
}

.algorithms-archive__load-more-progress {
    width: 100%;
    max-width: 300px;
    height: 8px;
    margin: 0 auto 20px;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    background-color: #f0f0f0;
    overflow: hidden;
}

.algorithms-archive__load-more-progress::-webkit-progress-bar {
    background-color: #e0e0e0;
}

.algorithms-archive__load-more-progress::-webkit-progress-value {
    background-color: #01916D;
}

.algorithms-archive__load-more-progress::-moz-progress-bar {
    background-color: #01916D;
}

progress::-webkit-progress-bar {
    background-color: #d5d5d5 !important;
}

progress::-webkit-progress-value {
    background-color: #99D3C4 !important;
}

.algorithms-archive__load-more-button {
    padding: 12px 40px;
    background-color: #01916D;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.algorithms-archive__load-more-button:hover {
    background-color: #017a5a;
}

.algorithms-archive__load-more-button.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Specialized Suites Section */
.algorithms-archive__suites {
    background-color: #ffffff;
    padding: 60px 20px;
}

.algorithms-archive__suites-subtitle {
    font-size: 18px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.algorithms-archive__suites-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.algorithms-archive__suites-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 40px;
    text-align: center;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop: Title Navigation (hidden on mobile) */
.algorithms-archive__suites-tabs {
    display: none;
}

.algorithms-archive__suites-tab {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 19px;
    color: #353535;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'clarimo_ud_pedemibold', sans-serif;
    position: relative;
    transition: color 0.3s ease;
}

.algorithms-archive__suites-tab:hover {
    color: #01916D;
}

.algorithms-archive__suites-tab.is-active {
    color: #01916D;
}

.algorithms-archive__suites-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #01916D;
}

/* Mobile: Drawer Style */
.algorithms-archive__suites-drawers {
    display: block;
}

.algorithms-archive__suites-drawer {
    position: relative;
    margin-bottom: 0;
}

.algorithms-archive__suites-drawer-header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.algorithms-archive__suites-drawer:last-child .algorithms-archive__suites-drawer-header {
    border-bottom: none;
}

.algorithms-archive__suites-drawer-toggle,
.algorithms-archive__suites-drawer-title-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.algorithms-archive__suites-drawer-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #01916D;
    background-color: transparent;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.algorithms-archive__suites-drawer-icon i {
    color: #01916D;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.algorithms-archive__suites-drawer.is-active .algorithms-archive__suites-drawer-icon {
    background-color: #01916D;
}

.algorithms-archive__suites-drawer.is-active .algorithms-archive__suites-drawer-icon i {
    color: #ffffff;
}


.algorithms-archive__suites-drawer:not(.is-active) .algorithms-archive__suites-drawer-icon {
    opacity: 1;
    border-color: #01916D;
    border-width: 3px;
}

.algorithms-archive__suites-drawer-title {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    text-align: left;
}

.algorithms-archive__suites-drawer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.algorithms-archive__suites-drawer.is-active .algorithms-archive__suites-drawer-content {
    max-height: 5000px;
}

.algorithms-archive__suites-drawer-content-inner {
    padding: 20px 0 20px 55px;
    position: relative;
}

.algorithms-archive__suites-drawer.is-active .algorithms-archive__suites-drawer-content-inner::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #01916D;
}

/* Connecting lines between drawer boxes */
.algorithms-archive__suites-drawer {
    position: relative;
}

/* Line from top of drawer header to top of icon box (connecting to box above) - not on first drawer */
.algorithms-archive__suites-drawer:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    height: 15px; /* Stop at top of icon box (header padding) */
    width: 2px;
    background-color: #e0e0e0;
    z-index: 0;
    pointer-events: none;
}

/* Make next drawer's ::before green when previous drawer is active */
.algorithms-archive__suites-drawer.is-active + .algorithms-archive__suites-drawer::before {
    background-color: #01916D;
}

/* Line from bottom of icon box down - not on last drawer */
.algorithms-archive__suites-drawer:not(:last-child) .algorithms-archive__suites-drawer-header::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 55px; /* Start from bottom of icon box (15px padding + 40px icon) */
    width: 2px;
    z-index: 0;
    pointer-events: none;
}

/* Gray line for inactive drawers - stops at bottom of current header */
.algorithms-archive__suites-drawer:not(.is-active):not(:last-child) .algorithms-archive__suites-drawer-header::after {
    background-color: #e0e0e0;
    bottom: 0;
}

/* Green line for active drawer - extends to top of next drawer's icon box */
.algorithms-archive__suites-drawer.is-active:not(:last-child) .algorithms-archive__suites-drawer-header::after {
    background-color: #01916D;
    bottom: calc(-50% + 15px); /* Extend to top of next drawer's icon box */
}

/* Green line for last active drawer - extends below icon box */
.algorithms-archive__suites-drawer.is-active:last-child .algorithms-archive__suites-drawer-header::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 55px; /* Start from bottom of icon box (15px padding + 40px icon) */
    bottom: 0;
    width: 2px;
    background-color: #01916D;
    z-index: 0;
    pointer-events: none;
}

/* Remove bottom border from header */
.algorithms-archive__suites-drawer-header {
    border-bottom: none;
}

.algorithms-archive__suites-drawer-image {
    margin-bottom: 20px;
}

.algorithms-archive__suites-drawer-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.algorithms-archive__suites-drawer-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

.algorithms-archive__suites-drawer-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #01916D;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.algorithms-archive__suites-drawer-button:hover {
    background-color: #017a5a;
    color: #ffffff;
}

/* Hide carousel on mobile, show drawers */
.algorithms-archive__suites-carousel-wrapper {
    display: none;
    position: relative;
}

.algorithms-archive__suites-carousel {
    position: relative;
}

/* Hide drawers on mobile initially (will be shown via CSS) */
.algorithms-archive__suites-drawers {
    display: block;
}

.algorithms-archive__suites-slide {
    padding: 20px 0;
}

.algorithms-archive__suites-slide-image {
    margin-bottom: 30px;
}

.algorithms-archive__suites-slide-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.algorithms-archive__suites-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.algorithms-archive__suites-slide-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: bold;
}

.algorithms-archive__suites-slide-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 30px;
}

.algorithms-archive__suites-slide-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #01916D;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.algorithms-archive__suites-slide-button:hover {
    background-color: #017a5a;
    color: #ffffff;
}

.algorithms-archive__suites-nav {
    display: none; /* Hidden on mobile */
}

.algorithms-archive__suites-nav-prev,
.algorithms-archive__suites-nav-next {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.algorithms-archive__suites-nav-prev:hover,
.algorithms-archive__suites-nav-next:hover {
    border-color: #01916D;
    color: #01916D;
}

.algorithms-archive__suites-nav-prev.slick-disabled,
.algorithms-archive__suites-nav-next.slick-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA Section */
.algorithms-archive__cta {
    background-color: #ffffff;
    padding: 60px 20px;
}

.algorithms-archive__cta-card {
    background-color: #f2f9f7;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.algorithms-archive__cta-icon {
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
}

.algorithms-archive__cta-icon-img {
    max-width: 80px;
    height: auto;
}

.algorithms-archive__cta-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: bold;
}

.algorithms-archive__cta-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 30px;
}

.algorithms-archive__cta-button {
    display: inline-block;
    padding: 12px 40px;
    background-color: #01916D;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.algorithms-archive__cta-button:hover {
    background-color: #017a5a;
    color: #ffffff;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .algorithms-archive__masthead {
        min-height: 500px;
    }

    .algorithms-archive__masthead-content {
        padding: 60px 40px;
    }
    
    .algorithms-archive__masthead-title {
        font-size: 42px;
    }
    
    .algorithms-archive__masthead-text {
        font-size: 18px;
    }
    
    .algorithms-archive__filters {
        padding: 40px 30px;
    }
    
    .algorithms-archive__filter-row {
        flex-direction: row;
        align-items: center;
    }
    
    .algorithms-archive__filter-label {
        min-width: 120px;
    }
    
    .algorithms-archive__cards {
        padding: 20px 30px;
    }
    
    .algorithms-archive__cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 27px;
        align-items: stretch;
    }
    
    .algorithms-archive__cards-grid > div {
        display: flex;
        height: 100%;
    }
    
    .algorithms-archive__suites {
        padding: 80px 30px;
    }
    
    .algorithms-archive__suites-title {
        font-size: 42px;
    }
    
    .algorithms-archive__suites-slide-image {
        margin-bottom: 0;
        width: 55%;
    }
    
    /* Desktop: Show carousel, hide drawers */
    .algorithms-archive__suites-carousel-wrapper {
        display: block;
        padding-bottom: 20px;
        position: relative;
    }
    
    .algorithms-archive__suites-carousel {
        display: block;
        overflow: hidden; /* Ensure slides outside viewport are hidden */
        width: 100%;
        position: relative;
    }
    
    /* Before Slick initializes, hide all but first slide */
    .algorithms-archive__suites-carousel:not(.slick-initialized) .algorithms-archive__suites-slide {
        display: none !important;
    }
    
    .algorithms-archive__suites-carousel:not(.slick-initialized) .algorithms-archive__suites-slide:first-child {
        display: block !important;
    }
    
    /* Ensure Slick can properly control slide visibility */
    .algorithms-archive__suites-carousel .slick-list {
        overflow: hidden;
        width: 100%;
        position: relative;
    }
    
    .algorithms-archive__suites-carousel .slick-track {
        display: flex;
        align-items: stretch;
        position: relative;
    }
    
    .algorithms-archive__suites-carousel .slick-slide {
        float: none;
        height: auto;
        display: flex;
        align-items: stretch;
        min-height: 1px;
    }
    
    .algorithms-archive__suites-carousel .slick-slide > div {
        width: 100%;
    }
    
    /* Fix Bootstrap row negative margins inside Slick */
    .algorithms-archive__suites-carousel .algorithms-archive__suites-slide .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .algorithms-archive__suites-drawers {
        display: none;
    }
    
    /* Desktop: Show title navigation */
    .algorithms-archive__suites-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
        border-bottom: 2px solid #e0e0e0;
        padding-bottom: 20px;
    }
    
    /* Desktop: Slide layout - left image, right content */
    .algorithms-archive__suites-slide {
        padding: 40px 0;
    }
    
    .algorithms-archive__suites-slide-row {
        justify-content: space-between;
    }
    
    .algorithms-archive__suites-slide-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        position: relative;
        width: 40%;
    }
    
    .algorithms-archive__suites-slide-title {
        text-align: left;
    }
    
    .algorithms-archive__suites-slide-description {
        text-align: left;
    }
    
    /* Desktop: Navigation controls positioned outside carousel */
    .algorithms-archive__suites-carousel-wrapper .algorithms-archive__suites-nav {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        position: absolute;
        right: 0;
        z-index: 10;
    }
    
    .algorithms-archive__suites-nav-prev,
    .algorithms-archive__suites-nav-next {
        width: 50px;
        height: 50px;
        border: 2px solid #01916D;
        background-color: #ffffff;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .algorithms-archive__suites-nav-prev i,
    .algorithms-archive__suites-nav-next i {
        color: #01916D;
        font-size: 18px;
    }
    
    .algorithms-archive__suites-nav-prev:hover,
    .algorithms-archive__suites-nav-next:hover {
        background-color: #01916D;
    }
    
    .algorithms-archive__suites-nav-prev:hover i,
    .algorithms-archive__suites-nav-next:hover i {
        color: #ffffff;
    }
    
    .algorithms-archive__cta {
        padding: 80px 30px;
    }
    
    .algorithms-archive__cta-card {
        padding: 50px 40px;
    }
}

/* Desktop Styles */
@media (min-width: 1200px) {
    .algorithms-archive__masthead {
        min-height: 600px;
    }

    .algorithms-archive__masthead-content {
        padding: 80px 60px;
        height: -webkit-fill-available;
    }
    
    .algorithms-archive__masthead-title {
        font-size: 52px;
    }
    
    .algorithms-archive__masthead-text {
        font-size: 24px;
    }
    
    .algorithms-archive__filters {
        padding: 50px 60px 15px;
    }
    
    /* Filter Header - Desktop Layout */
    .algorithms-archive__filters-container {
        width: 65%;
        margin: 0 auto;
    }
    
    /* Cards Container - Match Filters Width */
    .algorithms-archive__cards-container {
        width: 65%;
        margin: 0 auto;
        padding: 0;
    }
    .algorithms-archive__filters-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /*margin-bottom: 30px;
        padding-bottom: 20px;*/
        border-bottom: 1px solid #e0e0e0;
    }
    
    .algorithms-archive__filters-title {
        justify-content: flex-start;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .algorithms-archive__filters-actions {
        text-align: right;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    /* Filter Group - Horizontal Layout on Desktop */
    .algorithms-archive__filters-group {
        display: flex;
        flex-direction: row;
        margin-bottom: 0;
    }
    
    /* Filter Accordion - Always Open on Desktop */
    .algorithms-archive__filter-accordion {
        flex: 0 0 33.333%;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        padding-right: 30px;
        padding-left: 30px;
        margin-bottom: 0;
    }
    
    .algorithms-archive__filter-accordion:first-child {
        padding-left: 0;
    }
    
    .algorithms-archive__filter-accordion:last-child {
        border-right: none;
        padding-right: 0;
    }
    
    /* Accordion Header - Static on Desktop */
    .algorithms-archive__filter-accordion-header {
        cursor: default;
        padding: 0 0 15px 0;
        /* margin-bottom: 15px; */
        border-bottom: none;
        padding-top: 20px;
    }
    
    .algorithms-archive__filter-accordion-header:hover {
        color: inherit;
    }
    
    .algorithms-archive__filter-accordion-header:hover .algorithms-archive__filter-label {
        color: #000000;
    }
    
    /* Hide accordion icon on desktop */
    .algorithms-archive__filter-accordion-icon {
        display: none;
    }
    
    /* Accordion Content - Always Visible on Desktop */
    .algorithms-archive__filter-accordion-content {
        display: block !important;
        padding-bottom: 0;
    }
    
    .algorithms-archive__cards {
        padding: 20px 60px 60px 60px;
    }
    
    .algorithms-archive__cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
        align-items: stretch;
    }
    
    .algorithms-archive__cards-grid > div {
        display: flex;
        height: 100%;
    }
    
    .algorithms-archive__suites {
        padding: 60px 60px 0 60px;
    }
    
    .algorithms-archive__suites-title {
        font-size: 48px;
    }
    
    .algorithms-archive__cta {
        padding: 40px 60px;
    }
    
    .algorithms-archive__cta-card {
        padding: 60px 50px;
        max-width: 80%;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0 40px;
        align-items: center;
        text-align: left;
    }
    
    .algorithms-archive__cta-icon {
        margin-bottom: 0;
        grid-row: 1 / 3;
        grid-column: 1;
        align-self: center;
    }
    
    .algorithms-archive__cta-icon-img {
        max-width: 100px;
        height: auto;
    }
    
    .algorithms-archive__cta-title {
        font-size: 32px;
        margin-bottom: 8px;
        text-align: left;
        grid-row: 1;
        grid-column: 2;
        padding-bottom: 0px;
    }
    
    .algorithms-archive__cta-description {
        margin-bottom: 0;
        text-align: left;
        grid-row: 2;
        grid-column: 2;
    }
    
    .algorithms-archive__cta-button {
        white-space: nowrap;
        grid-row: 1 / 3;
        grid-column: 3;
        align-self: center;
    }
}

@media (min-width: 1600px) {
    .algorithms-archive__cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px;
        align-items: stretch;
    }
}