/* ============================================================
   Magnum Cambodia Eve — Bootstrap 5 compatible stylesheet
   Visual 98% mirip site asli
   ============================================================ */

html { font-size: 62.5%; }

body {
    font-size: 1.4rem;
    font-family: Verdana, Geneva, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* ---- Logo ---- */
.mc-logo {
    line-height: 0;
}
.mc-logo img { display: block; width: 100%; }

/* ---- Navbar ---- */
.mc-nav {
    background:
        url("assets/imgs/cambodia_02.jpg") no-repeat left center,
        url("assets/imgs/cambodia_10.jpg") no-repeat right center;
    background-size: 11px 49px, 11px 49px;
    background-color: #8b0000;
}

.mc-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 11px;
}
.mc-nav-inner::-webkit-scrollbar { display: none; }
.mc-nav-inner a { display: block; flex-shrink: 0; line-height: 0; }
.mc-nav-inner a img { display: block; height: 49px; width: auto; }

/* ---- Sub-strip ---- */
.mc-strip { line-height: 0; }

/* ---- Bootstrap container override ---- */
.mc-container {
    max-width: 960px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #fff;
}

/* ---- 3-column layout ---- */
.mc-body { background: #fff; }

/* ---- Sidebar ---- */
.mc-sidebar { width: 210px; }

.mc-sidebar-left {
    background: url("assets/imgs/cambodia_16.jpg") repeat-y top center;
    background-size: 210px auto;
}
.mc-sidebar-right {
    background: url("assets/imgs/cambodia_19.jpg") repeat-y top center;
    background-size: 210px auto;
}
.mc-sidebar > img { width: 100%; display: block; }
.mc-banners {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    gap: 8px;
}
.mc-banners a img { max-width: 100%; height: auto; display: block; }

/* ---- Main content ---- */
.mc-main {
    min-height: 600px;
    background: #fff;
    padding: 4px 0;
}

/* ---- Footer ---- */
.mc-footer {
    background: url("assets/imgs/cambodia_24.jpg") repeat-x center;
    background-size: auto 71px;
    min-height: 71px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
}
.mc-footer-title {
    color: #ba1c1e;
    font-family: "Times New Roman", serif;
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
}
.mc-footer-copy {
    color: #33335a;
    font-family: "Times New Roman", serif;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
}

/* ============================================================
   HEADER BARS (p_ = pink monthly/day, o_ = orange first/contact)
   ============================================================ */
.mc-header-bar {
    display: flex;
    align-items: stretch;
    height: 42px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 6px;
}
.mc-header-bar .hb-left  { flex-shrink: 0; line-height: 0; }
.mc-header-bar .hb-left img,
.mc-header-bar .hb-right img { height: 42px; display: block; }
.mc-header-bar .hb-mid   {
    flex: 1;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
}
.mc-header-bar .hb-right { flex-shrink: 0; line-height: 0; }

/* Pink header (monthly/day) */
.mc-header-pink .hb-mid {
    background: url("assets/imgs/p_back.gif") repeat-x left center;
    background-color: #8b0015;
}

/* Orange header (first/contact) */
.mc-header-orange .hb-mid {
    background: url("assets/imgs/o_mid.gif") repeat-x left center;
    background-color: #c04400;
}

/* Month/Day selector dalam header */
.mc-header-bar .hb-mid select {
    font-size: 1.2rem;
    margin-left: 6px;
    border: none;
    border-radius: 2px;
    padding: 1px 4px;
    vertical-align: middle;
}

/* Day tab links dalam header */
.mc-header-bar .hb-mid a.day-tab {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 3px;
    font-weight: normal;
    white-space: nowrap;
}
.mc-header-bar .hb-mid a.day-tab.active {
    color: #FFD700;
    font-weight: bold;
    text-decoration: underline;
}
.mc-header-bar .hb-mid a.day-tab:hover { color: #fff; }

/* ============================================================
   RESULTS TABLES (monthly, day, first)
   ============================================================ */
.mc-results-wrap { padding: 4px; }

/* Outer table monthly */
.mc-monthly-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #EEEEEE;
}
.mc-monthly-table th {
    background: #646464;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 5px 4px;
    border: 1px solid #ccc;
}
.mc-monthly-table td {
    background: #fff;
    vertical-align: top;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
}
.mc-monthly-table td.prize-col { text-align: left; padding-left: 8px; }
.mc-monthly-table td.prize-col .prize-date {
    color: #0000a0;
    display: block;
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* First / Day results table */
.mc-first-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #EEEEEE;
}
.mc-first-table tr { border-bottom: 1px solid #EEEEEE; }
.mc-first-table td {
    background: #fff;
    padding: 4px 6px;
    vertical-align: middle;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}
.mc-first-table td.date-col {
    background: #FB7A02;
    color: #000;
    width: 35%;
    text-align: center;
    height: 45px;
}
.mc-first-table td.prize-col {
    width: 35%;
    text-align: center;
}
.mc-first-table td.more-col {
    width: 20%;
    text-align: center;
}
.mc-first-table td img { vertical-align: middle; }

/* Day page — kolom tanggal pink #E6518B (persis situs asli) */
.mc-day-table td.date-col {
    background: #E6518B;
}

/* ---- Ball rows (live draw) ---- */
.ball-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 4px;
}
.ball-row img { height: 30px; width: auto; }

/* ---- Prize pills (live draw) ---- */
.pill-row { width: 100%; margin: 0; }
.pill-row td { padding: 0; }
.pill {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    font-family: "Times New Roman", serif;
    width: 100%;
}
.pill img.kiri  { width: 16px; height: 35px; flex: none; }
.pill img.kanan { width: 11px; height: 35px; flex: none; }
.pill .mid {
    flex: 1;
    height: 35px;
    line-height: 35px;
    background: url("assets/imgs/mid.jpg") repeat-x center;
    text-align: center;
}

/* ---- Lucky / Consolation table (live draw) ---- */
.lucky-cons-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2px;
}
.lucky-cons-table th {
    text-align: center;
    background: url("assets/imgs/mid.jpg") repeat-x center;
    color: #fff;
    font-family: "Times New Roman", serif;
    font-size: 1.2rem;
    padding: 4px;
}
.lucky-cons-table td {
    vertical-align: top;
    text-align: center;
    padding: 2px 4px;
}

/* ---- Date/time ---- */
.date-time-now {
    color: #ff1111;
    font-weight: bold;
    font-size: 1.4rem;
    text-align: right;
    padding: 4px 8px;
}

/* ---- Static pages (policy, about) ---- */
.mc-static {
    padding: 10px;
    color: #000;
    font-size: 1.3rem;
    text-align: justify;
}
.mc-static h1 { font-size: 1.6rem; color: #0000a0; }
.mc-static p  { font-size: 1.3rem; margin-bottom: 8px; }

/* ---- Contact form ---- */
.mc-contact { padding: 10px; font-size: 1.2rem; color: #000; }
.mc-contact table td { padding: 4px 6px; vertical-align: top; }
.mc-contact input[type=text],
.mc-contact textarea {
    font-size: 1.2rem;
    border: 1px solid #ccc;
    padding: 2px 4px;
    border-radius: 2px;
}
.mc-contact input[type=button] {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 3px 12px;
    border: 1px solid #999;
    border-radius: 2px;
    background: #e0e0e0;
}

/* ---- Page navigation ---- */
.page-navigation {
    display: flex;
    justify-content: space-around;
    padding: 8px 4px;
    flex-wrap: wrap;
    gap: 4px;
}
.page-navigation a {
    background-color: #cc0000;
    color: #fff;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none;
    padding: 3px 10px;
    font-size: 1.3rem;
}
.page-navigation span {
    background-color: rgba(0,0,0,0.4);
    color: #0000a0;
    display: block;
    border-radius: 3px;
    font-weight: 700;
    padding: 3px 10px;
    font-size: 1.3rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
    .mc-layout { max-width: 100%; }
    .mc-sidebar { width: 160px; }
}

@media (max-width: 720px) {
    .mc-layout { flex-direction: column; }
    .mc-sidebar { display: none !important; }
    .mc-main { min-height: auto; background: none; width: 100%; }
    .mc-nav-inner { justify-content: flex-start; padding: 0; }
    .mc-nav-inner a img { height: 38px; }
    .mc-footer { background-size: 100% 71px; }
    .ball-row img { height: 24px; }
    .mc-monthly-table th,
    .mc-monthly-table td { font-size: 1.1rem; padding: 3px 2px; }
    .mc-monthly-table td img { height: 18px !important; }
    .mc-first-table td img { height: 18px !important; }
    .mc-header-bar { height: 36px; }
    .mc-header-bar .hb-left img,
    .mc-header-bar .hb-right img { height: 36px; }
    .mc-header-bar .hb-mid { font-size: 1.1rem; }
}
