/* ============================= */
/* SUCCESS STORIES SECTION */
/* ============================= */

.ss-container {
    background: var(--bg-color-white-2);
    width: 100%;
    min-height: 300px;
    padding: 20px;
}

.ss-inner {
    max-width: 1200px;
    margin: auto;
}

/* ============================= */
/* HEADING */
/* ============================= */

.ss-main-heading {
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color-1);
}

.ss-main-heading .ss-m-heading {
    color: var(--text-color-black);

}

/* RIGHT SIDE (ARROWS + VIEW ALL) */
.ss-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* VIEW ALL */
.ss-controls a {
    padding-left: 10px;
    font-size: 0.8rem;
    background: var(--primary);
    color: var(--text-color-white-1-black);
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
}

/* OPTIONAL DIVIDER */
.ss-controls a {}

/* ============================= */
/* SLIDER */
/* ============================= */

.ss-wrapper {
    position: relative;
}

.ss-content {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

/* ============================= */
/* CARD DESIGN */
/* ============================= */

.ss-item {
    flex: 0 0 calc(25% - 0.75rem);
    /* 4 items visible */
    background-color: var(--bg-color-white-1);
    padding: 10px;
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--text-color-white);
}

.ss-item img {
    width: 100%;
    height: 180px;
    border-radius: 4px;
    transition: 0.3s;
}

/* HOVER EFFECT */


/* TEXT */
.ss-item .ss-desc h3 {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 0px;
}

.ss-item .ss-desc h4 {
    color: var(--primary-soft);
    font-weight: 500;
    font-size: 0.8rem;
    padding-bottom: 10px;
    color: var(--accent-1);
    border: 1px solid var(--accent-1);
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-weight: 500;
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-1);
    color: var(--text-color-black);
    opacity: .9;
}

.ss-item .ss-desc p {
    font-size: 0.75rem;
    color: var(--primary);
}

/* READ MORE BUTTON */
.ss-item .ss-desc p a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8rem;
    background: var(--accent-1);
    padding: 5px 10px;
    display: block;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.ss-item .ss-desc a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8rem;
    background: var(--accent-1);
    margin-top: 10px;
    padding: 10px 10px;
    display: block;
    text-align: center;

    width: 100%;
    border-radius: 5px;
}

.ss-item .ss-desc p a i {
    vertical-align: middle;
}

/* ============================= */
/* NAV BUTTONS (IN HEADER) */
/* ============================= */

.ss-nav {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--primary);
    color: var(--text-color-white-1-black);
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-nav.disabled {
    background: var(--bg-color-white-3);
    cursor: not-allowed;
    opacity: 0.6;
    color: var(--text);
    border: 1px solid var(--border-color-1);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* Tablet → 2 items */
@media (max-width: 992px) {
    .ss-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* Mobile → 1 item */
@media (max-width: 576px) {
    .ss-item {
        flex: 0 0 100%;
    }

    .ss-main-heading {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ss-controls {
        width: 100%;
        justify-content: flex-start;
    }
}