
.card-pin{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pag-input-wrapper {
    color: var(--color-red-text-primary, #990000);
    display: flex;
    gap: 8px;
}

.bingkai-vanilla-wrapper {
    padding: var(--bk-padding-v-m, 10px) var(--bk-padding-h-m, 40px);
    border-radius: var(--bk-radius, 12px);
    width: 100%;
    box-sizing: border-box;
}

.title-bingkai-card {
    margin-top: var(--title-m-top, 0px);
    margin-bottom: var(--title-m-bottom, 24px);
    margin-left: var(--title-m-left, 10px);
    margin-right: var(--title-m-right, 0px);
    color: var(--color-brand-primary-500, #012169);
}


.frame-card-grid {
    /* padding: 10px 0; */
    box-sizing: border-box;
}

.bingkai-post-item {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
}

.bingkai-post-item > a,
.card-news-type-2,
.card-three-main,
.main-box-hub-type-card-4,
.card-type-card-5 {
    width: 100%;
    max-width: 100%;
    min-width: 0; 
    box-sizing: border-box;
}

.image-type-2 {
    width: 100% !important;
    max-height: 400px;
    aspect-ratio: 1 / 1 !important;
}

.card-three-main,
.main-box-hub-type-card-4,
.card-type-card-5 {
    aspect-ratio: 314 / 393 !important;
    max-height: 400px;
}

.frame-card-grid.mode-grid,
.frame-card-grid.mode-none {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: var(--grid-gap, 20px);
}

.frame-card-grid.mode-grid .bingkai-post-item,
.frame-card-grid.mode-none .bingkai-post-item {
    width: 100%;
}

.frame-card-grid.rfp-list-style {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.components-form-token-field__suggestions-list {
    max-height: 180px;
    overflow-y: auto;
}

/* ==========================================================================
   CARD-1 STYLES
   ========================================================================== */
.card-1 {
    background-color: #ffffff;
    padding: 5px 10px;
}

.card-1:hover {
    background-color: rgba(36, 45, 88, 0.04);
}

.bingkai-post-item.card-1 {
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.card-rfp-layout-v2 .rfp-closing-date {
    color: #4a5568; 
    margin: 0;
}

.card-rfp-layout-v2 .rfp-closing-date * {
    color: inherit;
}

.card-rfp-layout-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.card-rfp-layout-v2 .rfp-main-content {
    flex-grow: 1;
    padding: 20px 20px 10px 10px;
}

.card-rfp-layout-v2 .post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--color-brand-primary-500, #012169);
    text-decoration: underline;
    margin: 0;
}

/* ==========================================================================
   HORIZONTAL & VERTICAL SLIDER MODES
   ========================================================================== */
.frame-card-grid.mode-slider,
.frame-card-grid.mode-scroll {
    display: flex;
    overflow-x: auto;
    gap: var(--grid-gap, 20px);
}

.frame-card-grid.mode-slider {
    scroll-snap-type: x mandatory;
}

.frame-card-grid.mode-slider .bingkai-post-item,
.frame-card-grid.mode-scroll .bingkai-post-item {
    width: calc((100% / var(--grid-cols, 4)) - (((var(--grid-cols, 4) - 1) * var(--grid-gap, 20px)) / var(--grid-cols, 4)));
    flex-shrink: 0;
}

.frame-card-grid.mode-slider_vertical {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: var(--max-height-v, 400px);
    gap: var(--grid-gap, 20px);
    padding-right: 5px;
}

.frame-card-grid.mode-slider_vertical .bingkai-post-item {
    width: 100%;
    flex-shrink: 0;
}

/* ==========================================================================
   PAGINATION & ACCESSIBILITY
   ========================================================================== */
.bingkai-custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: var(--gap-card-pag, 30px);
    margin-bottom: var(--gap-card-pag, 30px);
    color: #1a202c; 
    font-size: 0.9rem;
    
}

.bingkai-custom-pagination .pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bingkai-custom-pagination .pag-btn {
    color: var(--color-red-text-primary, #990000);
    text-decoration: none;
    font-weight: bold;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.bingkai-custom-pagination .pag-btn:focus,
.bingkai-custom-pagination .pag-current-input:focus,
.card-rfp-layout-v2:focus,
.card-3:focus,
.card-rfp-layout-v2-link:focus,
.container-type-5:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.bingkai-custom-pagination .pag-btn.disabled {
    color: #a0aec0;
    pointer-events: none;
    opacity: 0.5;
}

.bingkai-custom-pagination .pag-current-input {
    width: 25px;
    text-align: center;
    border: none;
    border-bottom: 2px solid var(--color-red-text-primary, #990000);
    background: transparent;
    font-weight: bold;
    color: var(--color-red-text-primary, #990000);
    outline: none;
}

.bingkai-highlight-action {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: var(--gap-card-pag, 25px);
}

.btn-bingkai-highlight {
    display: inline-flex;
    align-items: center;
    gap: 4px; 
    color: var(--color-red-text-primary, #990000);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease-in-out;
}

.btn-bingkai-highlight:hover {
    opacity: 0.7;
}

.btn-bingkai-highlight .hl-custom-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-bingkai-highlight:hover .hl-custom-icon {
    transform: translateX(3px);
}

/* ==========================================================================
    CARD-2 STYLES
   ========================================================================== */
.image-type-2 {
    background: #ffffff !important;
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.media-type-2 {
    background: transparent !important;
    border-radius: 8.04px;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    max-width: 100%;
    max-height: 100%;
    display: block;
    box-sizing: border-box;
    flex: unset !important;
}

.detail-type-2 {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}


.detail-type-2 {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.text-type-2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.category-type-2 {
    color: rgba(29, 29, 29, 0.6);
    text-align: left;
}

.title-type-2 {
    color: #012169;
    text-align: left;
    text-decoration: underline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3em;
}

.date-type-2 {
    color: rgba(29, 29, 29, 0.6);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ==========================================================================
   CARD-3 NEW STYLES (PURE WHITE BACKGROUND & CONTAIN ASPECT)
   ========================================================================== */
.card-three-container {
    text-decoration: none;
    display: block;
}

.card-three-main {
    background: #ffffff !important;
    border-radius: 14.04px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.card-three-image-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.card-three-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.card-three-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.card-three-content {
    padding: 21.06px 14.04px 14.04px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8.78px;
    align-self: stretch;
}

.card-three-info {
    display: flex;
    flex-direction: column;
    gap: 3.51px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
}

.card-three-user-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    align-self: stretch;
}

.card-three-username {
    flex: 1;
    color: #ffffff;
    text-align: left;
    text-decoration: underline;
}

.card-three-quote {
    align-self: stretch;
    color: #ffffff;
    text-align: left;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ==========================================================================
   FULL CSS CARD 4
   ========================================================================== */

.link-wrapper-hub-type-card-4,
a.link-wrapper-hub-type-card-4 {
    text-decoration: none !important;
    display: block;
    width: 100%;
    height: 100%;
}

.main-box-hub-type-card-4 {
    background: #ffffff;
    border-radius: var(--radius-lg, 12px);
    padding: 8px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    height: 100% !important;
    aspect-ratio: 314 / 393 !important;
    max-height: 400px;
    box-sizing: border-box;
}

.backdrop-hub-type-card-4 {
    background: #012169;
    border-radius: 8.98px;
    width: 94.41%;
    height: 95.43%;
    position: absolute;
    right: 2.8%;
    left: 2.8%;
    bottom: 0.38%;
    top: 4.19%;
    transform-origin: 0 0;
    transform: rotate(-2.316deg);
}

.inner-container-hub-type-card-4 {
    background: #eff7f7;
    border-radius: 8px;
    padding: 20px 25px 20px 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex: 1;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.body-content-hub-type-card-4 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: space-between; 
    align-self: stretch;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quote-area-hub-type-card-4 {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex: 1;
    overflow: hidden;
}

.quote-mark-hub-type-card-4 {
    color: #012169;
    text-align: left;
    text-decoration: none !important;
    display: inline-block;
}

.paragraph-hub-type-card-4 {
    color: #012169;
    text-align: left;
    align-self: stretch;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    text-overflow: ellipsis;
    text-decoration: underline !important; 
}

.author-info-hub-type-card-4 {
    width: 100%;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.icon-svg-hub-type-card-4 {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.author-name-hub-type-card-4 {
    color: #012169;
    margin: 0;
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pin-decoration-hub-type-card-4 {
    position: absolute;
    right: 9.04%;
    top: -1.14%;
}

.parangbatikframe-card {
    position: absolute;
    right: -1%;
    top: -5%;
    overflow: hidden;
    pointer-events: none;
}

.parangimage {
    width: 120px;
    height: auto;
}

/* ==========================================================================
   CARD-5 STYLES
   ========================================================================== */
.container-type-card-5 {
    display: flex;
    justify-content: center;
    align-items: start;
    text-decoration: none;
}

.card-type-card-5 {
    position: relative;
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: -2px 2px 48px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.spine-type-card-5 {
    width: 6.06%;
    background: #eff7f7;
    border-radius: 14px 0 0 14px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.spine-line-type-card-5 {
    height: 100%;
    border-left: 1px solid rgba(1, 33, 105, 0.1);
    box-shadow: -2.1px 4.21px 10.09px rgba(17, 17, 17, 0.36);
}

.cover-type-card-5 {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.image-wrapper-type-card-5 {
    padding: 8px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.image-type-card-5 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
    border-radius: 0 10px 10px 0;
}

.title-type-card-5 {
    background: #ffffff;
    color: #012169;
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-default-layout {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   MEDIA QUERIES (DESKTOP GRID ENHANCEMENT)
   ========================================================================== */
@media (min-width: 768px) {
    .description-bingkai-card {
        max-width: 50%;
        width: 100%;
    }
    .bingkai-custom-pagination .pag-current-input {
        width: 20px;
    }
    
    .bingkai-vanilla-wrapper {
        padding: var(--bk-padding-v-d, 10px) var(--bk-padding-h-d, 40px);
    }
    
        .frame-card-grid.mode-grid,
    .frame-card-grid.mode-none {
        grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - (var(--grid-gap, 20px) * (var(--grid-cols, 4) - 1))) / var(--grid-cols, 4))), 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .frame-card-grid.mode-grid,
    .frame-card-grid.mode-none {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    .frame-card-grid.mode-slider,
    .frame-card-grid.mode-scroll {
        overflow-x: auto;
    }
    
    .frame-card-grid.mode-slider .bingkai-post-item,
    .frame-card-grid.mode-scroll .bingkai-post-item {
        width: 85%;
    }
    
    .bingkai-custom-pagination {
        flex-direction: column;
        gap: 10px;
    }
}