/* =====================================================
   FIX: LEFT EDGE CUTTING ON SWIPE
   Safe padding for first card visibility
   ===================================================== */

/* Give extra room to carousel container */
.opc-carousel {
    padding-left: 0px;
    padding-right: 0px;
}

/* Prevent clipping during drag */
.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
}

/* Add spacing so first card is never cut */
.opc-carousel .owl-stage {
    padding-left: 8px;
}

/* Ensure cards don’t stick to edge */
.opc-carousel .owl-item {
    padding-left: 0px;
    padding-right: 2px;
}

/* =====================================================
   NEW FIXES – CARD HEIGHT & TEXT CLAMP
   (Do NOT remove old CSS, this only enhances it)
   ===================================================== */

/* Ensure all carousel items stretch equally */
.opc-carousel .owl-stage {
    display: flex;
}

.opc-carousel .owl-item {
    display: flex;
    height: auto;
}

.opc-carousel .owl-item > div {
    height: 100%;
    display: flex;
}

/* Force equal height cards */
.opc-card {
    display: flex;                /* override missing flex */
    flex-direction: column;       /* stack elements */
}

/* -----------------------------------------------------
   TITLE: MAX 2 LINES ONLY
----------------------------------------------------- */
.opc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;         /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 48px;              /* keeps equal spacing */
}

/* -----------------------------------------------------
   EXCERPT: ALWAYS 2 LINES
----------------------------------------------------- */
.opc-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* ALWAYS 2 LINES */
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.6;
    min-height: calc(1.6em * 2); /* reserve exact 2-line space */
    max-height: calc(1.6em * 2);
}

/* Safety for content tags inside excerpt */
.opc-excerpt p,
.opc-excerpt span,
.opc-excerpt div {
    display: inline;
}

/* Prevent images / extra blocks inside content excerpt */
.opc-excerpt img,
.opc-excerpt iframe,
.opc-excerpt video {
    display: none !important;
}

/* -----------------------------------------------------
   FOOTER ALWAYS STAYS AT BOTTOM
----------------------------------------------------- */
.opc-footer {
    margin-top: auto;              /* pushes footer down */
}

/* -----------------------------------------------------
   SAFETY: PREVENT RANDOM HEIGHT COLLAPSE
----------------------------------------------------- */
.opc-card > * {
    flex-shrink: 0;
}

.opc-card {
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    flex-direction: column;
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Header */
.opc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.opc-category {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 10px;
}

/* Live badge */
.opc-live {
    background: #ffbcbc;
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.opc-dot {
    width: 8px;
    height: 8px;
    background: #ff3b3b;
    border-radius: 50%;
    animation: opcBlink 1s infinite;
}

@keyframes opcBlink {
    0% { opacity: 1 }
    50% { opacity: 0 }
    100% { opacity: 1 }
}

/* Title */
.opc-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0px;
    color: #111;
}

/* Excerpt */
.opc-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

/* Footer */
.opc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 7px;
}

.opc-date {
    font-size: 13px;
    color: #999;
}

/* Arrow button */
.opc-arrow {
    width: 42px;
    height: 42px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: transform .2s ease;
}

.opc-arrow:hover {
    transform: translateX(4px);
}
.owl-carousel .owl-stage-outer {
    padding: 16px 3px!important;
}