
body {
    margin:0;
    font-family:'Inter', sans-serif;
    background:#F4F1F8;
    color:#333;
}

/* WRAPPER */
#wrapper { max-width:1400px; margin:auto; }

/* HEADER */
#header {
    background:url(../image/bannerportal0.jpg) no-repeat center;
    height:160px;
    background-size:cover;
    border-bottom:5px solid #5A1E76;
}

/* TOP BAR */
#bar {
    background:#fff;
    padding:10px 20px;
    text-align:right;
    font-size:14px;
    color:#666;
    border-bottom:1px solid #ddd;
}

/* CONTAINER */
#container {
    display:flex;
    flex-wrap:nowrap;
    gap:20px;
    padding:20px;
}

/* SIDEBAR */
#side-a { flex:0 0 260px; }
.news {
    background:linear-gradient(180deg,#5A1E76,#7A2BA8);
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.news h3 {
    color:#FFD700;
    font-size:20px;
    text-align:center;
    margin-bottom:15px;
    letter-spacing:1px;
}
#nav { list-style:none; padding:0; }
#nav li { margin:10px 0; position:relative; }
#nav li a {
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    background:rgba(255,255,255,0.1);
    border-radius:8px;
    color:#fff;
    font-weight:500;
    text-decoration:none;
    transition:0.3s;
}
#nav li a:hover { background:#FFD700; color:#5A1E76; transform:translateX(5px);}
#nav li a.active { background:#FFD700; color:#5A1E76; font-weight:600; }
#nav li ul { padding-left:25px; margin-top:5px; }
#nav li ul li a { background:rgba(255,255,255,0.15); }



/* CONTENT */
#side-b {
    flex:1;
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
}

/* HEADER KEPUTUSAN */
.header-keputusan {
    background:#5A1E76;
    padding:20px 25px;
    border-radius:12px;
    color:#FFD700;
    font-size:28px;
    font-weight:700;
    letter-spacing:1.5px;
    margin-bottom:25px;
    text-align:center;
    box-shadow:0 4px 14px rgba(0,0,0,0.2);
}

/* TABLE */
.table-container { overflow-x:auto; }
table {
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
    min-width:600px;
    border-radius:8px;
    overflow:hidden;
}
thead { background:#5A1E76; color:#FFD700; }
thead th { padding:12px; font-size:15px; text-align:center; }
tbody td { padding:12px; background:#FBF7FF; border-bottom:1px solid #e5d8f3; text-align:center; font-size:14px; }
tbody tr:hover { background:linear-gradient(90deg,#FDEFF5,#F1E6FA); }

/* STATUS */
.status-open { color:#0a8a0a; font-weight:bold; }
.status-close { color:#d40000; font-weight:bold; }

/* SEMAKAN BUTTON */
.semakan-btn {
    display:inline-block;
    padding:7px 14px;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    color:#fff;
    background:#1e88e5;
    transition:0.3s;
}
.semakan-btn:hover { background:#1565c0; }

/* RESPONSIVE */
@media(max-width:900px){
    #container { flex-direction:column; }
    #side-a, #side-b { max-width:100%; }
}


/* BUTTON LINK TABLE */
#side-b .card table a {
    display:inline-block;
    padding:8px 16px;
    border-radius:8px;
    background:#1e88e5;
    color:#fff;
    font-weight:600;
    text-align:center;
    text-decoration:none; /* tiada underline */
    min-width:150px;
    transition:0.3s;
}
#side-b .card table a:hover {
    background:#1565c0;
    color:#fff;
    text-decoration:none; /* tiada underline */
}


/* CONTENT */
#side-b { flex:1; }

/* CARDS */
#side-b .card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

#side-b .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#side-b .card h3 {
    color: #5A1E76;
    font-size: 20px;
    margin-bottom: 12px;
}

#side-b .card ol, 
#side-b .card ul {
    padding-left: 20px;
}

#side-b .card a {
    color: #fff; 
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background:#1e88e5;
    transition:0.3s;
    display:inline-block;
}

#side-b .card a:hover {
    background:#1565c0;
    color:#fff;
}


/* ICON GRID INTERACTIVE */
.icon-grid {
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:center;
    margin-bottom:25px;
}
.icon-card {
    perspective:1000px;
    flex:1 1 250px;
}
.icon-box {
    background:#FBF7FF;
    border-radius:12px;
    padding:20px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:0.3s;
    transform-style:preserve-3d;
    cursor:pointer;
}




.icon-card {
    flex:1 1 250px; /* kotak boleh mengecil/besar ikut ruang */
}

.icon-box {
    background:#FBF7FF;
    border-radius:12px;
    padding:20px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:0.3s;
    transform-style:preserve-3d;
    cursor:pointer;
    
    min-height: 220px;  /* tinggi minimum supaya kotak tak terlalu kecil */
    max-height: 260px;  /* tinggi maksimum supaya kotak tak terlalu besar */
    display:flex;
    flex-direction:column;
    justify-content:center;  /* teks dan imej tengah secara vertikal */
}

.icon-box img { width:100px; height:100px; margin-bottom:10px; transition:0.3s;}
.icon-box p a { display:block; font-weight:600; color:#1e88e5; text-decoration:none; transition:0.3s;}
.icon-box:hover { transform:translateY(-10px); box-shadow:0 10px 25px rgba(0,0,0,0.2);}
.icon-box:hover img { transform:scale(1.1);}
.icon-box:hover p a { color:#1565c0;}

/* INFO TEXT */
.info-text { text-align:justify; line-height:1.6; }
.info-text ul { margin-left:20px; }


/* Card Style */
.contact-card {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    line-height: 1.6;
    font-size: 15px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.contact-card .title {
    font-size: 17px;
    font-weight: 700;
    color: #5A1E76;
    margin-bottom: 10px;
}

.contact-card i {
    margin-right: 6px;
    width: 18px;
    text-align: center;
    color: #5A1E76;
}


/* CLOCK STYLING */
.clock-box { font-family:'Inter', sans-serif; }
#day { color:#007bff; font-weight:600; }    /* Biru untuk hari */
#date { color:#28a745; font-weight:500; margin-left:5px; } /* Hijau tarikh */
#time { color:#dc3545; font-weight:700; margin-left:5px; font-variant-numeric: tabular-nums; } /* Merah jam */
#hijri { color:#6f42c1; font-weight:600; margin-left:5px; } /* Ungu Hijriyah */

