/* Container & Wrapper */
.onos-bss-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Header Section */
.onos-bss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    /* Optional separator */
    padding-bottom: 10px;
}

.onos-bss-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
}

.onos-bss-nav-container {
    display: flex;
    gap: 15px;
}

.onos-bss-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #95a5a6;
    padding: 0;
    transition: color 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.onos-bss-nav:hover {
    color: #2c3e50;
}

.onos-bss-nav:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* Slider Track */
.onos-bss-slider {
    overflow: hidden;
    width: 100%;
}

.onos-bss-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Columns (The sliding unit) */
.onos-bss-column {
    flex: 0 0 25%;
    /* Desktop: 4 columns */
    max-width: 25%;
    padding: 0 10px;
    /* Horizontal Gap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Vertical Gap between rows */
}

/* Cards */
.onos-bss-card {
    width: 100%;
    /* Fill column */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill available height in grouping? */
}

.onos-bss-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.onos-bss-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Image */
.onos-bss-image-container {
    background: #fff;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 4px 4px 0 0;
}

.onos-bss-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.onos-bss-card-inner:hover .onos-bss-image-container img {
    transform: scale(1.05);
}

/* Content Area - Light Blue Theme */
.onos-bss-content {
    background: #e1f5fe;
    /* Light Blue */
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 0 0 4px 4px;
}

.onos-bss-title {
    font-size: 16px;
    font-weight: 700;
    color: #0288d1;
    /* Strong Blue */
    margin: 0 0 10px;
    line-height: 1.3;
}

.onos-bss-title a {
    text-decoration: none;
    color: inherit;
}

.onos-bss-excerpt {
    font-size: 13px;
    color: #546e7a;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* View Button - Circle to Pill Transition */
.onos-bss-action {
    margin-top: auto;
    padding-top: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.onos-bss-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 30px;
    /* Fully rounded */
    background: #00ADEF;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    overflow: hidden;
    /* Circle State by Default */
    max-width: 36px;
}

.onos-bss-view-btn span {
    font-size: 18px;
    line-height: 1;
    margin-left: 0;
    /* Centered in circle */
    transition: margin 0.3s;
    min-width: 18px;
    /* Ensure icon doesn't shrink */
    text-align: center;
}

/* Helper to hide text in circle mode but allow transition */
.onos-bss-view-btn-text {
    opacity: 0;
    width: 0;
    display: inline-block;
    transition: all 0.3s;
}

/* Hover State (Expand to Pill) */
.onos-bss-card-inner:hover .onos-bss-view-btn,
.onos-bss-view-btn:hover {
    width: auto;
    max-width: 200px;
    /* Allow expansion */
    padding: 8px 20px;
    height: auto;
    /* Reset fixed height */
    min-height: 36px;
    background: #0081b3;
    color: #fff;
    transform: translateX(3px);
    /* Subtle nudge */
}

.onos-bss-card-inner:hover .onos-bss-view-btn span,
.onos-bss-view-btn:hover span {
    margin-left: 8px;
    /* Space between text and icon */
}

.onos-bss-card-inner:hover .onos-bss-view-btn-text,
.onos-bss-view-btn:hover .onos-bss-view-btn-text {
    opacity: 1;
    width: auto;
}

/* Mobile/Tablet adjustment: Keep Circle State if touch (no hover) or tight space */
@media (max-width: 1024px) {

    /* Adjust Column Spacing */
    .onos-bss-column {
        padding: 0 5px;
        /* Tighter padding for mobile grid */
    }

    /* Smaller Image Height for Mobile Cards */
    .onos-bss-image-container {
        height: 150px;
        padding: 10px;
    }

    /* Smaller Fonts for Mobile density */
    .onos-bss-title {
        font-size: 14px;
    }

    .onos-bss-excerpt {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* On Mobile, keep button as Circle (Arrow Only) to match reference and save space */
    .onos-bss-view-btn {
        width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
        background-color: transparent;
        /* Use default logic or user setting */
    }

    .onos-bss-view-btn-text {
        opacity: 0 !important;
        width: 0 !important;
        display: none !important;
    }

    .onos-bss-view-btn span {
        margin-left: 0 !important;
    }
}

/* =========================================
   CTA Buttons (Single Product & Global)
   ========================================= */
.onos-cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.onos-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #00ADEF;
    /* Cyan/Blue from screenshot */
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    min-width: 120px;
}

.onos-cta-btn:hover {
    background-color: #009ad5;
    text-decoration: none;
    color: #fff;
}

.onos-cta-btn .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .onos-bss-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .onos-bss-column {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .onos-bss-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .onos-bss-nav-container {
        align-self: center;
    }

    .onos-cta-container {
        flex-direction: column;
        align-items: stretch;
    }

    .onos-cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}