.mokh-events-section {
    --bg-page: #ffffff;
    --card-upcoming-bg: #f4f5f8;
    --primary-blue: #1665ff;
    --primary-orange: #fb7c5c;
    --text-dark: #111111;
    --text-gray: #6b7280;
    --radius-lg: 16px;
    --radius-md: 8px;

    width: min(1200px, calc(100% - 3rem));
    margin-inline: auto;
    padding-top: 20px;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    font-family: var(--mk-font, inherit);
}

.mokh-events-section,
.mokh-events-section * {
    box-sizing: border-box;
}

.mokh-events-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(1.75rem, 3vw, 2.35rem);
    padding: 0;
}

.mokh-events-section .header-titles h2 {
    font-size: var(--mk-section-title-size, 1.3125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0;
}

.mokh-events-section .header-titles p {
    margin: 0.5rem 0 0;
    font-size: var(--mk-section-subtitle-size, 0.9375rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-gray);
}

.mokh-events-section .view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mokh-events-section .view-all-link:hover {
    color: var(--text-dark);
}

.mokh-events-section .view-all-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mokh-events-section .slider-wrapper {
    position: relative;
    width: 100%;
}

.mokh-events-section .slider-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 4px 5px 24px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-user-drag: none;
    direction: rtl;
}

.mokh-events-section .slider-track::-webkit-scrollbar {
    display: none;
}

.mokh-events-section .slider-track:active {
    cursor: grabbing;
}

.mokh-events-section .slider-track.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.mokh-events-section .slider-track.is-dragging .card {
    pointer-events: none;
}

.mokh-events-section .card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 460px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.mokh-events-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mokh-events-section .card-upcoming {
    width: 320px;
    background-color: var(--card-upcoming-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.mokh-events-section .card-upcoming .image-section {
    width: 100%;
    height: 45%;
    position: relative;
    background-color: #e5e7eb;
}

.mokh-events-section .card-upcoming .image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mokh-events-section .badge-orange {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.mokh-events-section .btn-top-orange {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 34px;
    height: 34px;
    background: var(--primary-orange);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mokh-events-section .btn-top-orange svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mokh-events-section .card-upcoming .content-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.mokh-events-section .card-upcoming h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.6;
}

.mokh-events-section .card-upcoming .meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.mokh-events-section .meta-list p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

.mokh-events-section .meta-item--schedule {
    align-items: flex-start;
}

.mokh-events-section .meta-item--schedule svg {
    margin-top: 2px;
}

.mokh-events-section .meta-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mokh-events-section .meta-item__date {
    font-size: 0.85rem;
    line-height: 1.5;
}

.mokh-events-section .meta-item__time {
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-gray);
}

.mokh-events-section .meta-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--text-gray);
}

.mokh-events-section .btn-blue {
    width: 100%;
    height: 46px;
    flex-shrink: 0;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
}

.mokh-events-section .btn-blue .right-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mokh-events-section .btn-blue svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.mokh-events-section .card-finished {
    width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background-color: #e5e7eb;
}

.mokh-events-section .card-finished .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale(100%);
}

.mokh-events-section .btn-top-white {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mokh-events-section .btn-top-white svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mokh-events-section .btn-bottom-white {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 44px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 0.85rem;
    font-weight: 800;
    color: #333;
    white-space: nowrap;
}

.mokh-events-section .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    direction: rtl;
}

.mokh-events-section .pagination[hidden] {
    display: none !important;
}

.mokh-events-section .dot {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mokh-events-section .dot.active {
    width: 24px;
    background-color: #9ca3af;
}

@media (max-width: 860px) {
    .mokh-events-section {
        width: min(100%, calc(100% - 2rem));
        margin-top: clamp(1.25rem, 4vw, 2rem);
    }
}

@media (max-width: 768px) {
    .mokh-events-section {
        width: min(100%, calc(100% - 2rem));
        margin-top: clamp(1.75rem, 5vw, 2.5rem);
        padding-top: clamp(0.75rem, 2vw, 1.25rem);
    }

    .mokh-events-section .section-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0.65rem;
        row-gap: 0.35rem;
        align-items: center;
        margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
        padding-inline: 0;
    }

    .mokh-events-section .header-titles {
        display: contents;
    }

    .mokh-events-section .header-titles h2 {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .mokh-events-section .view-all-link {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        font-size: 0.72rem;
        font-weight: 700;
        gap: 0.3rem;
        white-space: nowrap;
    }

    .mokh-events-section .header-titles p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .mokh-events-section .view-all-link svg {
        width: 11px;
        height: 11px;
    }

    .mokh-events-section .slider-track {
        padding-inline: 0;
    }

    .mokh-events-section .card-upcoming {
        width: 300px;
        height: 440px;
    }

    .mokh-events-section .card-finished {
        width: 260px;
        height: 440px;
    }
}

.mk-topic-events-section-wrap {
    scroll-margin-top: calc(var(--mk-header-height, 76px) + 16px);
}

.mk-topic-sec--events {
    scroll-margin-top: calc(var(--mk-header-height, 76px) + 16px);
}

.mokh-events-section--topic {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-top: 0;
    direction: rtl;
    text-align: right;
}

.mokh-events-section--topic .slider-wrapper,
.mokh-events-section--topic .slider-track,
.mokh-events-section--topic .pagination {
    width: 100%;
    direction: rtl;
}

.mokh-events-section--topic .slider-track {
    justify-content: flex-start;
    padding-inline: 0;
}

.mokh-events-section--topic .card-upcoming .content-section,
.mokh-events-section--topic .card-upcoming h3,
.mokh-events-section--topic .meta-item__text {
    text-align: right;
}

.mokh-events-section--topic .meta-list {
    align-items: stretch;
    width: 100%;
}

.mokh-events-section--topic .meta-list p {
    width: 100%;
    justify-content: flex-start;
    text-align: right;
}

.mokh-events-section--topic .pagination {
    justify-content: center;
    margin-top: 14px;
}

.mokh-events-section--topic .pagination[hidden] {
    display: none !important;
}

.mokh-events-section--topic .btn-blue {
    direction: rtl;
}
