/**
 * DS Kerempuh Carousel - Styles
 * Version: 1.3.0
 */

/* Main Container */
.ds-kerempuh-carousel {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.ds-kerempuh-carousel *,
.ds-kerempuh-carousel *::before,
.ds-kerempuh-carousel *::after {
    box-sizing: border-box;
}

/* Header with title and navigation */
.dskc-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.dskc-header h2 {
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

/* Navigation */
.dskc-navigation {
    display: flex;
    gap: 30px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dskc-prev,
.dskc-next {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    outline: none;
    position: relative;
}

.dskc-prev:hover,
.dskc-next:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.dskc-prev:focus,
.dskc-next:focus {
    outline: none;
}

.dskc-prev:disabled,
.dskc-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dskc-prev img,
.dskc-next img {
    width: 26px;
    height: 26px;
    display: block;
}

/* Carousel Wrapper */
.dskc-wrapper {
    overflow: hidden;
    position: relative;
}

/* Track */
.dskc-track {
    display: flex;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

.dskc-track:active {
    cursor: grabbing;
}

.dskc-track.no-transition {
    transition: none;
}

/* Items */
.dskc-item {
    flex: 0 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.dskc-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.dskc-item:hover .dskc-item-inner {
    transform: translateY(-2px);
}

/* Image */
.dskc-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    max-height: 325px;
}

.dskc-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.dskc-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: block;
}

.dskc-item:hover .dskc-image img {
    transform: scale(1.05);
}

/* Lazy loading */
.dskc-image img.dskc-lazy {
    filter: blur(5px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.dskc-image img.dskc-lazy.loaded {
    filter: blur(0);
}

/* Meta Info */
.dskc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.dskc-type {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dskc-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #000;
    line-height: 1;
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
}

.dskc-duration img {
    width: 12px;
    height: 15px !important;
    vertical-align: middle;
}

/* Title */
.dskc-item-title {
    margin: 0;
    padding-bottom: 4px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.dskc-item-title a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
    line-height: 1.2;
}

.dskc-item-title a:hover {
    opacity: 0.8;
}

.dskc-item-title a:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Content */
.dskc-content {
    padding: 0 0px 20px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 30px;
}

/* Button */
.dskc-button {
    margin-top: auto;
    margin-bottom: 0;
    padding: 10px 20px !important;
    min-width: 140px !important;
    text-align: center !important;
        min-height: 52px !important;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid;
    text-transform: uppercase;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}


h3.dskc-item-title {
    margin-top: 10px;
}

.dskc-button:hover {
    text-decoration: none;
}

.dskc-button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Dots Navigation */
.dskc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 10px;
}

.dskc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.dskc-dot:hover {
    transform: scale(1.2);
}

.dskc-dot.active {
    background: #333;
    border-color: #333;
    width: 30px;
    border-radius: 5px;
}

.dskc-dot:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Full Width Edge to Edge - Desktop Only */
@media only screen and (min-width: 768px) {
    /* Main container */
    .ds-kerempuh-carousel {
        overflow: visible !important;
    }

    /* Header stays in container */
    .ds-kerempuh-carousel .dskc-header {
        max-width: 1425px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 90px;
        padding-right: 90px;
        position: relative; /* Important for navigation positioning */
    }

    /* Navigation position - absolutely positioned to viewport edge */
    .ds-kerempuh-carousel .dskc-navigation {
        position: absolute;
        right: calc(-50vw + 50% + 20px); /* Position relative to viewport edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    /* Wrapper extends edge to edge */
    .ds-kerempuh-carousel .dskc-wrapper {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 0;
        width: 100vw;
        position: relative;
        overflow: hidden;
    }

    /* Track */
    .ds-kerempuh-carousel .dskc-track {
        display: flex;
        transition: transform 0.3s ease;
    }

    /* For Salient theme - specific override */
    .container-wrap .ds-kerempuh-carousel {
        position: relative;
    }

    .container-wrap .ds-kerempuh-carousel .dskc-wrapper {
        width: 100vw !important;
        max-width: none !important;
    }
}

/* Large screens - keep same spacing */
@media only screen and (min-width: 1921px) {
    .dskc-item {
        padding: 0 15px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .dskc-header h2 {
        font-size: 24px !important;
    }

    .dskc-item-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .dskc-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 50px;
    }

    .dskc-navigation {
        position: static;
        transform: none;
        margin-bottom: 10px;
        display: none !important
    }

    .dskc-prev img,
    .dskc-next img {
        width: 18px;
        height: 18px;
    }

    .dskc-wrapper {
        margin: 0 -10px;
    }

    .dskc-item {
        padding: 0 10px;
    }

    .dskc-image img {
        height: 210px !important;
    }

    .dskc-meta {
        padding: 12px 0px 8px;
    }

    .dskc-item-title {
        padding: 8px 0px 12px;
        font-size: 18px;
    }

    .dskc-content {
        padding: 0 0px 5px;
        margin-bottom: 5px;
    }

    .dskc-button {
        margin: 10px 0px;
        font-size: 12px;
        padding: 6px 16px !important;
        min-width: 120px !important;
        min-height: 42px !important;
        text-align: center !important;
    }






    .dskc-duration img {
        width: 6px;
        height: 12px !important;
        vertical-align: middle;
    }

    .ds-kerempuh-carousel {
        margin-left: -5px !important;
        margin-right: -50px !important;
    }

    .dskc-header {
        padding-right: 50px;
    }
}

@media (max-width: 480px) {
    .dskc-header h2 {
        font-size: 20px !important;
    }

    .dskc-header {
        margin-bottom: 30px;
    }

    .dskc-item-title {
        font-size: 16px;
    }

    .dskc-dots {
        gap: 6px;
    }

    .dskc-dot {
        width: 8px;
        height: 8px;
    }

    .dskc-dot.active {
        width: 20px;
    }
}

/* RTL Support */
.rtl .dskc-navigation {
    right: auto;
    left: 0;
}

.rtl .dskc-prev img {
    transform: scaleX(-1);
}

.rtl .dskc-next img {
    transform: scaleX(-1);
}

.rtl .dskc-track {
    direction: rtl;
}

.rtl .dskc-item {
    direction: ltr;
}

/* Print styles */
@media print {
    .dskc-navigation,
    .dskc-dots {
        display: none;
    }

    .dskc-track {
        transform: none !important;
        display: block;
    }

    .dskc-item {
        display: block;
        width: 100% !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dskc-track,
    .dskc-image img,
    .dskc-button,
    .dskc-dot,
    .dskc-prev,
    .dskc-next {
        transition: none !important;
    }

    .dskc-item:hover .dskc-image img {
        transform: none;
    }
}



@media only screen and (min-width: 490px) {
    .dskc-image img {
    min-height: 50vw;
}
.dskc-image {
    max-height: 50vw;
}
}






@media only screen and (min-width: 769px) {
    .dskc-image img {
    min-height: 17vw;
}
.dskc-image {
    max-height: 17vw;
}
}


@media only screen and (min-width: 2400px) {
    .dskc-image img {
    min-height: 380px;
}
.dskc-image {
    max-height: 380px;
}
}




@media only screen and (min-width: 2800px) {
    .dskc-image img {
    min-height: 420px;
}
.dskc-image {
    max-height: 420px;
}
}


@media only screen and (min-width: 3000px) {
    .dskc-image img {
    min-height: 15vw;
}
.dskc-image {
    min-height: 15vw;
}
}