/* ==========================================================================
   PORTAL RASMI BOLA JARING MSSM 2026 - VERSI KEMAS
   ========================================================================== */

:root {
    --maroon: #7B1E3A;
    --pink-muda: #F29BC1;
    --pink-butang: #D86C9B;
    --bg-cream: #F8F3EC;
    --emas: #ffeb3b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    color: #2d3748;
    background-color: var(--bg-cream);
    background-image: url('images/bg-utama.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* ---------- HEADER & NAV ---------- */
header {
    background: var(--maroon);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.header-left { display: flex; align-items: center; gap: 18px; }

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-title h1 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.subtitle { color: var(--emas); font-size: 15px; font-weight: 600; margin-top: 4px; }

nav { display: flex; align-items: center; gap: 15px; margin-left: auto; }

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: .3s;
}

nav a:hover, nav a.active { background: rgba(255,255,255,.15); color: var(--emas); }

/* ---------- KOMPONEN KAD ---------- */
.tournament-card { 
    background: white; 
    border-radius: 20px; 
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08); 
    transition: .35s; 
    border: 2px solid #f4d5df; 
    text-align: center; 
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
}

.tournament-card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(0,0,0,.12); }

/* ---------- BUTANG ---------- */
.btn { 
    display: inline-block; 
    padding: 10px 30px; 
    background: var(--maroon); 
    color: #fff !important; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: bold; 
    transition: .3s;
    text-align: center;
    margin-top: 15px;
}
.btn:hover { background: var(--pink-butang); transform: translateY(-2px); }

/* ---------- UTILITY ---------- */
footer { background: var(--maroon); color: white; text-align: center; padding: 20px; font-weight: bold; margin-top: 50px; }

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav { margin-left: 0; justify-content: center; }
}/* Styling untuk Jadual Fixtures */
.fixture-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.fixture-table thead {
    background: #7B1E3A; /* Maroon */
    color: white;
}

.fixture-table th {
    padding: 18px 15px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.fixture-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
}

/* Gaya Logo dalam Jadual */
.team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
}

/* Gaya Status */
.status-selesai { color: #2f855a; font-weight: bold; }
.status-live { color: #e53e3e; font-weight: bold; }
.status-akan { color: #d69e2e; font-weight: bold; }
/* ==========================================================
   GAYA JADUAL PERLAWANAN (FIXTURES TABLE)
   ========================================================== */

/* Container Utama Jadual */
.fixture-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
}

/* Header Jadual (Maroon) */
.fixture-table thead 
   .fixture-table thead{
    background:#7B1E3A;
}

.fixture-table th{
    background:#7B1E3A;
    color:#fff;
    font-size:18px;
    font-weight:700;
    padding:18px 12px;
}

.fixture-table th {
    padding: 20px 15px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Baris Jadual */
.fixture-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    color: #4a5568;
}

/* Baris Selang-seli (Warna Cream) */
.fixture-table tr:nth-child(even) {
    background-color: #faf9f6;
}

/* Kesan Hover */
.fixture-table tr:hover {
    background-color: #fff5f8;
}

/* Gaya Logo Pasukan dalam Jadual */
.team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
}

/* Gaya Status (Warna) */
.status-selesai { color: #2f855a; font-weight: bold; }
.status-live { color: #e53e3e; font-weight: bold; animation: blink 1.5s infinite; }
.status-akan { color: #d69e2e; font-weight: bold; }

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}html,
body{
    height:100%;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

main{
    flex:1;
}