/* =====================================================================
   Mulema Frontend — Modern brand layer
   Beyond palette: royal blue + golden yellow + white, on deep navy blue.
   Loaded after the Musicly theme css to add modern components.
   ===================================================================== */
:root {
    --mg-blue: #1d4ed8;     /* primary blue */
    --mg-blue-2: #2563eb;
    --mg-navy: #0a2350;     /* deep navy blue */
    --mg-yellow: #f5c518;   /* golden yellow accent */
    --mg-yellow-2: #ffd84d; /* light yellow */
    /* legacy var names kept so existing rules keep working */
    --mg-orange: #1d4ed8;
    --mg-gold: #f5c518;
    --mg-gold-2: #ffd84d;
    --mg-grad: linear-gradient(135deg, #f5c518 0%, #ffd84d 100%);
    --mg-dark: #07172f;
    --mg-card: rgba(255, 255, 255, .05);
    --mg-border: rgba(245, 197, 24, .22);
}

/* ---- Brand buttons -------------------------------------------------- */
.mg-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px; border-radius: 40px;
    font-weight: 700; font-size: 14px; letter-spacing: .3px;
    color: var(--mg-navy) !important; background: var(--mg-grad);
    border: none; cursor: pointer; text-decoration: none;
    transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.mg-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 30px rgba(245, 197, 24, .45); color: var(--mg-navy) !important; }
.mg-btn--ghost {
    background: transparent; border: 1.5px solid var(--mg-border);
    color: var(--mg-yellow-2) !important;
}
.mg-btn--ghost:hover { border-color: var(--mg-yellow); background: rgba(245, 197, 24, .10); box-shadow: none; }

/* ---- Search field on dark ------------------------------------------ */
.mg-search { max-width: 460px; margin: 22px auto 0; position: relative; }
.mg-search input {
    width: 100%; padding: 14px 18px 14px 46px; border-radius: 40px;
    background: var(--mg-card); border: 1px solid rgba(255,255,255,.12);
    color: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.mg-search input::placeholder { color: rgba(255,255,255,.45); }
.mg-search input:focus { border-color: var(--mg-yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.18); }
.mg-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--mg-yellow); }

/* ---- Event / Ticket cards ------------------------------------------ */
.mg-card {
    position: relative; display: flex; flex-direction: column;
    height: 100%; margin-bottom: 30px;
    background: var(--mg-card); border: 1px solid var(--mg-border);
    border-radius: 20px; overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.mg-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 197, 24, .55);
    box-shadow: 0 24px 50px rgba(3, 12, 28, .55);
}
.mg-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #0c1d3a; }
.mg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mg-card:hover .mg-card__media img { transform: scale(1.07); }
.mg-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,23,47,.88), transparent 55%); }
.mg-card__badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 30px; font-size: 12px; font-weight: 700;
    color: var(--mg-navy); background: var(--mg-grad);
    box-shadow: 0 6px 16px rgba(245,197,24,.45);
}
.mg-card__badge--soldout { background: #555; color: #fff; }
.mg-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.mg-card__title { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.mg-card__title a { color: #fff; transition: color .2s; }
.mg-card__title a:hover { color: var(--mg-yellow); }
.mg-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mg-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 30px; font-size: 12.5px; font-weight: 600;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
}
.mg-chip i { color: var(--mg-yellow); }
.mg-chip--price { color: var(--mg-navy); background: var(--mg-yellow); border-color: transparent; }
.mg-chip--price i { color: var(--mg-navy); }
.mg-card__cta { margin-top: auto; }
.mg-card__cta .mg-btn { width: 100%; justify-content: center; }

/* ---- Floating WhatsApp button -------------------------------------- */
.mg-whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #25D366; color: #fff !important; font-size: 26px;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
    transition: transform .2s ease;
}
.mg-whatsapp-float:hover { transform: scale(1.08); color: #fff !important; }

@media (max-width: 575px) { .mg-card__media { aspect-ratio: 16 / 12; } }

/* =====================================================================
   "Less black" navy-blue layer
   ===================================================================== */
body {
    background:
        radial-gradient(1150px 720px at 10% -6%,  rgba(245,197,24,.14), transparent 52%),
        radial-gradient(1000px 700px at 96% 4%,   rgba(29,78,216,.26),  transparent 52%),
        radial-gradient(1100px 900px at 50% 118%, rgba(37,99,235,.16), transparent 55%),
        linear-gradient(180deg, #0c2a5e 0%, #0a2350 45%, #07172f 100%) !important;
    background-attachment: fixed !important;
}

.ms-bg-2,
.ms-fun-brand,
.ms-casting-area,
.ms-team-area,
.ms-partner-area,
.ms-song-area,
.ms-cta-area,
.ms-fun-brand.ms-bg-2 {
    background-color: transparent !important;
}
.ms-fun-brand.ms-bg-2 {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)) !important;
}

/* Hero overlay */
.ms-overlay-1::after { background: linear-gradient(180deg, rgba(7,23,47,0) 0%, rgba(7,23,47,.58) 100%) !important; }
.ms-banner-area .ms-br-30 { box-shadow: 0 30px 80px rgba(3,12,28,.45); }
.ms-banner-area .include__bg::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: linear-gradient(120deg, rgba(29,78,216,.32) 0%, rgba(245,197,24,.10) 45%, rgba(7,23,47,.10) 100%);
    pointer-events: none;
}

/* Page-title banners */
.ms-overlay8 { background: linear-gradient(120deg, rgba(29,78,216,.58), rgba(7,23,47,.80)) !important; opacity: 1 !important; }

/* Cards/items */
.ms-event2-item,
.ms-popular__item,
.ms-fun-brand-item,
.ms-song-item {
    background-color: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(245,197,24,.16);
    border-radius: 16px;
}

footer .ms-footer-bg { background-color: transparent !important; }

/* =====================================================================
   Premium Provincial Casting Calendar + Finals + Countdown
   ===================================================================== */
.ms-casting-premium { position: relative; }
.ms-casting-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(245, 197, 24, .25);
    box-shadow: 0 30px 80px rgba(3, 12, 28, .45);
    padding: 44px 40px;
    overflow: hidden;
}
.ms-casting-head { text-align: center; margin-bottom: 28px; }
.ms-casting-kicker { display: inline-block; color: #b8920a; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.ms-casting-title { color: var(--mg-navy); font-size: 34px; font-weight: 800; margin: 10px 0 0; }
.ms-casting-title::after { content: ""; display: block; width: 90px; height: 4px; margin: 16px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--mg-blue), var(--mg-yellow)); }
.ms-casting-sub { color: #5b6b86; font-size: 16px; max-width: 700px; margin: 18px auto 0; }

.ms-countdown { margin: 28px auto 32px; max-width: 580px; text-align: center; }
.ms-countdown-label { color: var(--mg-navy); font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.ms-countdown-label i { color: var(--mg-yellow); }
.ms-countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ms-cd-box { background: linear-gradient(180deg, #0c2f6b, #0a2350); border-radius: 16px; padding: 18px 8px; box-shadow: 0 12px 30px rgba(10, 35, 80, .28); }
.ms-cd-num { display: block; font-size: 36px; font-weight: 800; color: var(--mg-yellow-2); line-height: 1; font-variant-numeric: tabular-nums; }
.ms-cd-unit { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

.ms-casting-tablewrap { overflow: hidden; border-radius: 16px; border: 1px solid #e7edf5; }
.ms-casting-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.ms-casting-table thead th { background: linear-gradient(135deg, #0c2f6b, #0a2350); color: #fff; text-align: left; padding: 16px 18px; font-weight: 700; letter-spacing: .5px; }
.ms-casting-table tbody td { padding: 14px 18px; color: #23324d; border-top: 1px solid #eef2f8; }
.ms-casting-table tbody tr:nth-child(odd) { background: #f7f9fd; }
.ms-casting-table tbody tr:hover { background: #fff7d6; }
.ms-casting-table tbody td:first-child { font-weight: 700; color: var(--mg-navy); }
.ms-date-chip { display: inline-block; background: rgba(245, 197, 24, .18); color: #8a6d00; border: 1px solid rgba(245, 197, 24, .5); padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 13.5px; }

.ms-finals-title { text-align: center; color: var(--mg-navy); font-weight: 800; margin: 36px 0 22px; font-size: 24px; }
.ms-finals-timeline { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ms-finals-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #f7f9fd; border: 1px solid #e7edf5; border-radius: 16px; padding: 18px 24px; min-width: 150px; }
.ms-finals-item .ms-finals-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mg-blue); }
.ms-finals-name { font-weight: 700; color: var(--mg-navy); }
.ms-finals-date { font-size: 13px; color: #6b7a93; }
.ms-finals-item.is-next { background: linear-gradient(180deg, #fff7d6, #fff); border-color: var(--mg-yellow); box-shadow: 0 12px 30px rgba(245, 197, 24, .3); }
.ms-finals-item.is-next .ms-finals-dot { background: var(--mg-yellow); }
.ms-finals-badge { position: absolute; top: -10px; right: -8px; background: var(--mg-yellow); color: var(--mg-navy); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }

@media (max-width: 575px) {
    .ms-casting-card { padding: 26px 18px; }
    .ms-casting-title { font-size: 26px; }
    .ms-cd-num { font-size: 26px; }
    .ms-casting-table thead { display: none; }
    .ms-casting-table tbody td { display: flex; justify-content: space-between; border: none; padding: 8px 14px; }
    .ms-casting-table tbody td::before { content: attr(data-label); font-weight: 700; color: var(--mg-navy); }
    .ms-casting-table tbody tr { display: block; padding: 8px 0; border-bottom: 1px solid #eef2f8; }
}
