/* ---- Layout wrapper ---- */
.referencer-sektion {
    display: flex;
    align-items: flex-start;
    gap: 90px;
    width: 100%;
    font-family: inherit;
    padding-top: 30px;
    padding-bottom: 100px;
}

/* =========================================================================
   LEFT SIDEBAR
   ========================================================================= */
.ref-sidebar {
    flex: 0 0 280px;
    min-width: 400px;
}

.ref-sidebar__heading{
    font-size: 24px;
    line-height: 28px;
    color: #1D1D1B;
    margin: 10px 0 20px;
    font-weight: 400 !important;
}

.ref-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ref-sidebar__item {
    margin-bottom: 4px;
}

.ref-sidebar__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background-color: #556974;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ref-sidebar__btn:hover {
    background-color: #768D9A;
    color: #ffffff;
}

.ref-sidebar__item.is-active .ref-sidebar__btn {
    background-color: #768D9A;
    color: #ffffff;
}

.ref-sidebar__label {
    flex: 1;
}

.ref-sidebar__label em {
    font-style: normal;
    opacity: 0.7;
    margin-left: 4px;
}

.ref-sidebar__arrow {
    font-size: 1.3rem;
    line-height: 1;
    margin-left: 10px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ref-sidebar__item.is-active .ref-sidebar__arrow {
    opacity: 1;
}

/* =========================================================================
   RIGHT MAIN COLUMN
   ========================================================================= */
.ref-main {
    flex: 1;
    min-width: 0;
}

.ref-main__heading {
    font-size: 34px !important;
    font-weight: 700;
    color: #556974;
    margin: 0 0 20px 0;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 38px !important;
}

/* =========================================================================
   TESTIMONIAL CARD
   ========================================================================= */
.ref-card {
    background: #DFDAC8;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease;
}

.ref-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.ref-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ref-card__person {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ref-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ref-card__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2d3e4d;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.ref-card__person-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ref-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #1D1D1B;
    line-height: 1.3;
}

.ref-card__meta {
    font-size: 16px;
    color: #1D1D1B;
    line-height: 1.4;
}

.ref-card__logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ref-card__logo {
    max-height: 80px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 5px;
}

.ref-card__body {
    color: #1D1D1B;
    font-size: 20px;
    line-height: 26px;
}

.ref-card__preview {
    margin-bottom: 0;
    color: #1D1D1B;
}

.ref-card__full {
    margin-top: 16px;
    color: #1D1D1B;
}

.ref-card__full p {
    margin-bottom: 16px;
}

.ref-card__toggle {
    margin-top: 10px;
}

.ref-toggle-btn[hidden] {
    display: none !important;
}

.ref-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #F9482A;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ref-toggle-btn:hover {
    color: #F9482A;
    text-decoration: underline;
}

.ref-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #F9482A;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.ref-toggle-btn--close .ref-toggle-icon {
    background-color: #F9482A;
}

.page-carousel h4{
	font-size: 22px !important;
	line-height: 26px !important;
	font-weight: 400 !important;
}

/* =========================================================================
   LOAD MORE BUTTON
   ========================================================================= */
.ref-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.ref-load-more-btn {
    background-color: #F9482A;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.ref-load-more-btn:hover {
    background-color: #3d4c5a;
    transform: translateY(-1px);
}

.ref-load-more-btn:active {
    transform: translateY(0);
}

.ref-load-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* =========================================================================
   LOADING STATE
   ========================================================================= */
.ref-cards-container.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.ref-empty {
    color: #5c6b78;
    font-style: italic;
    padding: 20px 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
    .referencer-sektion {
        flex-direction: column;
        gap: 28px;
    }

    .ref-sidebar {
        flex: none;
        width: 100%;
    }

    .ref-sidebar__list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ref-sidebar__item {
        margin-bottom: 0;
    }

    .ref-sidebar__btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        border-radius: 3px;
    }

    .ref-sidebar__arrow {
        display: none;
    }
}

@media (max-width: 560px) {
    .ref-card {
        padding: 18px 16px;
    }

    .ref-card__header {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 0;
        row-gap: 0;
        align-items: center;
        margin-bottom: 16px;
    }

    .ref-card__person {
        display: contents;
    }

    .ref-card__avatar {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .ref-card__logo-wrap {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    .ref-card__person-info {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 12px;
    }

    .ref-load-more-wrap {
        justify-content: center;
    }
}
