/* Majlis Live – Events & Hero Slider */
.mlx-hero, .mlx-home-past, .mlx-past, .mlx-ended-note {
	--mlx-navy: #092634;
	--mlx-blue: #004E72;
	--mlx-orange: #FF6E42;
	--mlx-white: #F9F9F9;
	--mlx-ink: #0b1a22;
	--mlx-muted: #5b6b73;
	--mlx-radius: 28px;
	box-sizing: border-box;
}
.mlx-hero *, .mlx-home-past *, .mlx-past * { box-sizing: border-box; }
.mlx-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.mlx-hero svg, .mlx-home-past svg, .mlx-past svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Hero ---------- */
.mlx-hero { padding: 28px 0 56px; background: var(--mlx-white); }
.mlx-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.mlx-hero-title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--mlx-navy); }
.mlx-hero-title span { color: var(--mlx-orange); }
.mlx-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.mlx-chips a { padding: 11px 18px; border-radius: 999px; background: #e9eef1; color: var(--mlx-navy); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.mlx-chips a:hover, .mlx-chips a:focus-visible { background: var(--mlx-navy); color: #fff; transform: translateY(-1px); }
.mlx-chips .mlx-chip-all { background: var(--mlx-orange); color: #fff; }
.mlx-chips .mlx-chip-all:hover { background: #e85a2f; }

.mlx-slider { position: relative; outline: none; }
.mlx-viewport { overflow: hidden; border-radius: var(--mlx-radius); background: var(--mlx-navy); aspect-ratio: 2.6 / 1; box-shadow: 0 24px 50px -28px rgba(9, 38, 52, .55); isolation: isolate; }
.mlx-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .25, 1); will-change: transform; touch-action: pan-y; }
.mlx-slider.is-dragging .mlx-track { transition: none; }
.mlx-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; color: #fff; }
.mlx-slide-link { position: absolute; inset: 0; z-index: 3; }
.mlx-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 7s ease-out; }
.mlx-slide.is-active .mlx-bg { transform: scale(1.12); }
.mlx-slide.is-poster .mlx-bg { filter: blur(28px) saturate(1.25) brightness(.62); transform: scale(1.25); }
.mlx-slide.is-poster.has-photo .mlx-bg { filter: saturate(1.1) brightness(.78); transform: scale(1.04); }
.mlx-slide.is-poster.has-photo.is-active .mlx-bg { transform: scale(1.12); }
.mlx-slide.has-photo .mlx-shade { background: linear-gradient(0deg, rgba(9, 38, 52, .94) 0%, rgba(9, 38, 52, .5) 40%, rgba(9, 38, 52, .05) 70%), linear-gradient(90deg, rgba(9, 38, 52, .7) 0%, rgba(9, 38, 52, .15) 55%, rgba(9, 38, 52, .35) 100%); }
.mlx-poster { position: absolute; z-index: 3; pointer-events: none;right: 5%; top: 50%; height: 84%; width: auto; max-width: 42%; object-fit: cover; aspect-ratio: auto; border-radius: 18px; transform: translateY(-50%) rotate(0deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; opacity: .0; }
.mlx-slide.is-active .mlx-poster { opacity: 1; transform: translateY(-50%) rotate(-2deg); }
.mlx-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(9, 38, 52, .92) 0%, rgba(9, 38, 52, .45) 38%, rgba(9, 38, 52, 0) 65%), linear-gradient(90deg, rgba(9, 38, 52, .55) 0%, rgba(9, 38, 52, 0) 55%); pointer-events: none; }
.mlx-caption { position: absolute; z-index: 4; left: 0; bottom: 0; padding: 0 40px 34px; width: min(62%, 760px); pointer-events: none; }
.mlx-caption a, .mlx-caption .mlx-btn { pointer-events: auto; }
.mlx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mlx-tag-hot { background: #fff !important; color: var(--mlx-navy) !important; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: mlx-pulse 2s infinite; }
@keyframes mlx-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.mlx-tag { display: inline-block;padding: 6px 12px; border-radius: 999px; background: var(--mlx-orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mlx-slide-title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mlx-slide-title a { color: #fff; text-decoration: none; }
.mlx-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; opacity: .92; }
.mlx-meta span { display: inline-flex; align-items: center; gap: 8px; }
.mlx-where { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlx-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.mlx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; background: var(--mlx-orange); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.mlx-btn:hover { background: #e85a2f; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255, 110, 66, .8); }
.mlx-price { font-size: 15px; opacity: .9; }
.mlx-price strong { font-size: 18px; }

/* caption entrance */
.mlx-caption > * { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.mlx-slide.is-active .mlx-caption > * { opacity: 1; transform: none; }
.mlx-slide.is-active .mlx-caption > :nth-child(2) { transition-delay: .08s; }
.mlx-slide.is-active .mlx-caption > :nth-child(3) { transition-delay: .16s; }
.mlx-slide.is-active .mlx-caption > :nth-child(4) { transition-delay: .24s; }

/* arrows sit on the edges, like Platinumlist */
.mlx-arrow { position: absolute; top: 50%; z-index: 6; width: 62px; height: 62px; margin-top: -31px; border: 0; border-radius: 50%; background: #fff; color: var(--mlx-navy); display: grid; place-items: center; font-size: 24px; cursor: pointer; box-shadow: 0 8px 24px rgba(9, 38, 52, .22); transition: transform .2s, background .2s, color .2s; }
.mlx-arrow:hover, .mlx-arrow:focus-visible { background: var(--mlx-navy); color: #fff; transform: scale(1.06); outline: none; }
.mlx-prev { left: -31px; }
.mlx-next { right: -31px; }

/* countdown ring, top right */
.mlx-timer { position: absolute; z-index: 6; top: 22px; right: 22px; width: 34px !important; height: 34px !important; transform: rotate(-90deg); }
.mlx-timer circle { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 3; }
.mlx-timer .mlx-timer-run { stroke: #fff; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.mlx-slider.is-running .mlx-timer-run { animation-name: mlx-ring; animation-timing-function: linear; animation-fill-mode: forwards; }
.mlx-slider.is-paused .mlx-timer-run { animation-play-state: paused; }
@keyframes mlx-ring { to { stroke-dashoffset: 0; } }

.mlx-dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.mlx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c8d3d9; cursor: pointer; transition: width .3s, background .3s; }
.mlx-dots button[aria-selected="true"] { width: 26px; background: var(--mlx-orange); }

@media (max-width: 1280px) {
	.mlx-prev { left: 12px; }
	.mlx-next { right: 12px; }
	.mlx-arrow { width: 52px; height: 52px; margin-top: -26px; font-size: 20px; }
}
@media (max-width: 900px) {
	.mlx-viewport { aspect-ratio: 16 / 10; }
	.mlx-caption { width: 100%; padding: 0 22px 22px; }
	.mlx-poster { right: 50%; top: 8%; height: 56%; max-width: 70%; transform: translateX(50%); }
	.mlx-slide.is-active .mlx-poster { transform: translateX(50%) rotate(-2deg); }
	.mlx-shade { background: linear-gradient(0deg, rgba(9, 38, 52, .96) 0%, rgba(9, 38, 52, .6) 42%, rgba(9, 38, 52, 0) 70%); }
	.mlx-dots { display: flex; }
}
@media (max-width: 600px) {
	.mlx-hero { padding: 18px 0 36px; }
	.mlx-wrap { width: calc(100% - 28px); }
	.mlx-viewport { aspect-ratio: 4 / 5; --mlx-radius: 22px; border-radius: 22px; }
	.mlx-poster { top: 6%; height: 52%; max-width: 78%; }
	.mlx-arrow { display: none; }
	.mlx-chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
	.mlx-chips a { white-space: nowrap; padding: 9px 15px; font-size: 14px; }
	.mlx-meta { font-size: 14px; }
	.mlx-timer { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.mlx-track, .mlx-bg, .mlx-poster, .mlx-caption > * { transition: none !important; }
	.mlx-slide.is-active .mlx-bg { transform: scale(1.04); }
}

/* ---------- Cards (past events) ---------- */
.mlx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mlx-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 rgba(9, 38, 52, .06), 0 12px 30px -22px rgba(9, 38, 52, .5); transition: transform .25s, box-shadow .25s; }
.mlx-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(9, 38, 52, .06), 0 22px 40px -24px rgba(9, 38, 52, .6); }
.mlx-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #dfe6ea; overflow: hidden; }
.mlx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, filter .3s; }
.mlx-card.is-past .mlx-card-img img { filter: grayscale(.55) brightness(.92); }
.mlx-card:hover .mlx-card-img img { transform: scale(1.05); filter: none; }
.mlx-badge { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(9, 38, 52, .86); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.mlx-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.mlx-card-cat { color: var(--mlx-blue); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.mlx-card-title { margin: 0 0 4px; font-size: 18px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mlx-card-title a { color: var(--mlx-ink); text-decoration: none; }
.mlx-card-title a:hover { color: var(--mlx-orange); }
.mlx-card-meta { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--mlx-muted); line-height: 1.35; }
.mlx-card-meta svg { margin-top: 2px; }

.mlx-home-past { padding: 64px 0 72px; background: #eef2f4; }
.mlx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.mlx-eyebrow { margin: 0 0 6px; color: var(--mlx-orange); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.mlx-sec-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--mlx-navy); letter-spacing: -0.015em; }
.mlx-more { display: inline-flex; align-items: center; gap: 8px; color: var(--mlx-navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mlx-more:hover { color: var(--mlx-orange); }

.mlx-past { margin: 24px 0 8px; }
.mlx-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.mlx-pager a, .mlx-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; background: #e9eef1; color: var(--mlx-navy); font-weight: 700; text-decoration: none; }
.mlx-pager span { background: var(--mlx-navy); color: #fff; }
.mlx-pager a:hover { background: var(--mlx-orange); color: #fff; }
.mlx-empty { color: var(--mlx-muted); }

@media (max-width: 1024px) { .mlx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.mlx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.mlx-grid-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; scrollbar-width: none; }
	.mlx-grid-scroll .mlx-card { flex: 0 0 72%; scroll-snap-align: start; }
	.mlx-card-title { font-size: 16px; }
	.mlx-sec-head { align-items: flex-start; flex-direction: column; }
}

/* ---------- Single event that ended ---------- */
.mlx-ended-note { margin: 0 0 24px; padding: 16px 20px; border-radius: 14px; background: #fff1ec; border: 1px solid #ffc9b6; color: #5a2312; font-size: 16px; }
.mlx-ended-note a { color: var(--mlx-orange); font-weight: 700; }
body.mlx-event-ended a[href*="platinumlist.net/aff"] { display: none !important; }
