*{ box-sizing:border-box; font-family:Arial; }
body{ margin:0; }

/* HEADER */
header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding:10px 20px;
    border-bottom:3px solid #000;
}
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:bold;
    text-align:center;
}
.logo img{ height:100px; }
.logo span{ text-align:center; }

/* SEARCH & SOCIAL WRAPPER */
.search{
    position:relative;
    width:200px;
    margin-bottom:10px;
}
.search input{
    width:100%;
    padding:10px 38px 10px 14px;
    border:2px solid #333;
    border-radius:20px;
    font-size:13px;
}
.search::after{
    content:'';
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    font-size:14px;
    pointer-events:none;
}

/* SOCIAL CONTAINER */
.social-container{
    position:absolute;
    top: 95px;
    right:-640px;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    z-index:10;
}

.social-container2{
    position:absolute;
    top:53px;
    right:-320px;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    z-index:10;
}

.social-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
    transition:transform 0.2s;
}

.social-btn:nth-child(2){
    margin-left:0;
}

.social-btn:hover{
    transform:scale(1.1);
}

.social-btn img{
    width:70px ;
    height:70px ;
    border-radius:50%;
    object-fit:cover;
}

.social-btn.facebook{
    margin-top:-100px;
}

.social-btn.tiktok{
    margin-top:0;
}

.social-btn img {
    width: 60px;
    height: 60px;
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.tiktok {
    background-color: #000;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);

}

/* RIGHT CONTAINER */
header > :not(.logo){
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-end;
    position:relative;
}

/* MENU */
nav{
    border-bottom:3px solid #000;
}
.menu{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    padding:10px;
    margin:0;
    gap:10px;
}
.menu li{ position:relative; }

.menu a{
    padding:8px 18px;
    border:2px solid #000;
    border-radius:15px;
    text-decoration:none;
    color:#000;
    font-weight:bold;
    display:block;
}

.menu a:hover,
.menu a.active{
    background:#000;
    color:#fff;
}

/* DROPDOWN */
.dropdown ul{
    display:none;
    position:absolute;
    top:40px;
    left:0;
    list-style:none;
    padding:0;
    margin:0;
    background:#fff;
    z-index:1000;
}
.dropdown:hover ul{ display:block; }
.dropdown ul a{
    border-radius:0;
    border-bottom:1px solid #000;
}

/* CONTENT */
.content{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:15px;
    padding:20px;
}

/* SLIDER */
.slider{
    position:relative;
    border:4px solid #000;
    border-radius:30px;
    overflow:hidden;
    height: 600px;
}
.slides{
    position:relative;
    width:100%;
    height:100%;
}
.slide{
    width:100%;
    height:100%;
    object-fit:cover;
    display:none;
    position:absolute;
    top:0;
    left:0;
}
.slide.active{ display:block; }
video.slide{
    object-fit:cover;
}

.arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    font-size:40px;
    cursor:pointer;
}
.left{ left:20px; }
.right{ right:20px; }

/* SIDE */
.box{
    border:3px solid #000;
    border-radius:20px;
    padding:15px;
    height:200px;
    margin-bottom:15px;
}

/* Gaya untuk kotak berita */
.news-box {
    border: 3px solid #000;
    border-radius: 20px;
    padding: 15px;
    height: 200px;       /* Tinggi kotak tetap */
    width: 480px;        /* Lebar kotak boleh ubah */
    overflow-y: auto;    /* Scroll menegak jika kandungan panjang */
    margin-bottom: 15px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

/* Optional: gaya scrollbar supaya cantik */
.news-box::-webkit-scrollbar {
    width: 8px;
}

.news-box::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.news-box::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}


/* FOOTER */
footer{
    background:#062a63;
    color:#fff;
    display:grid;
    grid-template-columns:1fr 1fr 0.2fr;
    padding:55px;
}
footer a{ color:#fff; display:block; }
footer p{ font-size:18px; }
footer strong{ font-size:20px; }

/* RESPONSIVE */
@media(max-width:768px){
    .content, footer{ grid-template-columns:1fr; }
    header{ flex-direction:column; }
}
/* ===== KORPORAT PAGE ===== */
.korporat{
    grid-template-columns:1fr;
}

.korporat-box{
    border:3px solid #000;
    border-radius:20px;
    padding:20px;
    margin-bottom:20px;
}

.korporat-box h2{
    margin-top:0;
}
/* PROGRAM & PELAJAR */
.program, .pelajar{
    grid-template-columns:1fr;
}

.program-box, .pelajar-box{
    border:3px solid #000;
    border-radius:20px;
    padding:20px;
    margin-bottom:20px;
}
/* UI CARD */
.card{
    border:2px solid #000;
    border-radius:15px;
    padding:15px;
    background:#fff;
    box-shadow:2px 2px 8px rgba(0,0,0,0.1);
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

/* TABLE */
table{
    width:100%;
    border-collapse:collapse;
}
th, td{
    border:1px solid #000;
    padding:10px;
    text-align:left;
}
th{
    background:#000;
    color:#fff;
}

/* ORGANISASI TABLE */
.organisasi-table{
    margin-top:20px;
}
.organisasi-table thead{
    background:#062a63;
}
.organisasi-table th{
    background:#062a63;
    color:#fff;
    padding:12px;
    font-weight:bold;
}
.organisasi-table td{
    padding:12px;
    border:1px solid #ccc;
}
.organisasi-table tbody tr:hover{
    background:#f5f5f5;
}

/* FORM */
input, textarea, button{
    width:100%;
    padding:10px;
    margin-bottom:10px;
}
button{
    background:#000;
    color:#fff;
    border:none;
    cursor:pointer;
}
button:hover{
    background:#333;
}

/* IMAGE */
img.responsive{
    width:100%;
    border-radius:10px;
}
/* BETULKAN BORANG HUBUNGI */
form{
    max-width:800px;
    margin:40px auto;
}

/* BESARKAN INPUT */
input, textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    font-size:16px;
    box-sizing:border-box;
}

/* KHAS UNTUK MESEJ */
textarea{
    min-height:180px;   /* BESARKAN KOTAK */
    resize:vertical;    /* Boleh tarik ke bawah */
}

/* BUTANG HANTAR */
button{
    padding:15px;
    font-size:18px;
    margin-bottom:40px; /* JARAK DARI FOOTER */
}

/* ELAK FOOTER TINDIH */
footer{
    position:relative;
    margin-top:50px;
}

/* CONTAINER UTAMA */
.merch-container{
    width:151%;
    margin:40px auto;
}

/* KOTAK MERCHANDISE RASMI (FULL WIDTH) */
.merch-info{
    border:4px solid #000;
    border-radius:30px;
    padding:30px;
    margin-bottom:40px;
}

/* 3 KOTAK ITEM */
.merch-items{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30px;
}

/* SETIAP KOTAK ITEM */
.merch-card{
    border:4px solid #000;
    border-radius:30px;
    padding:20px;
    text-align:center;
}

/* GAMBAR DALAM KOTAK */
.merch-card img{
    width:100%;
    height:600px;
    object-fit:cover;
    border-radius:20px;
    margin-bottom:15px;
}
    
.takwim-box img{
    width:100%;
    height:1960px;
    object-fit:cover;
    border-radius:40px;
    margin-bottom:15px;
}

.jadual-box img{
    width:100%;
    height:1080px;
    object-fit:cover;
    border-radius:40px;
    margin-bottom:15px;
}

.btn-beli{
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-beli:hover{
    background: #333;
}
.korporat-box img{
    width:100%;
    height:1800px;
    object-fit:cover;
    border-radius:40px;
    margin-bottom:15px;
}

.jadual-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto;
    overflow-x: auto;
    padding: 10px;                 /* ruang antara border & gambar */
    border: 2px solid #333;        /* border utama */
    border-radius: 8px;            /* bucu lembut */
    background-color: #fff;        /* elak nampak pelik */
}

.jadual-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


.social-container {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end; /* sejajar kanan bawah carian */
    gap: 10px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn img {
    width: 40px;
    height: 40px;
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.tiktok {
    background-color: #000;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);

}
    .visitor-box {
    margin-top: -10px;
    margin-left:-10px;        /* ubah dari auto / default ke 0 untuk kiri */
    padding: 5px 10px;
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;  /* pastikan ikut posisi semula jadi */
}

.last-updated {
    margin-top: 5px;
    font-size: 14px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 0px;
    text-align: left;  /* Ini buat teks sejajar kiri */
}

.news-marquee{
    width:100%;
    overflow:hidden;
    background:#222;
    color:#fff;
    padding:10px 0;
    border-radius:8px;
}

.news-text{
    display:inline-block;
    white-space:nowrap;
    padding-left:100%;
    animation: scrollNews 20s linear infinite;
}

@keyframes scrollNews{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-100%);
    }
}

.news-vertical{
    height:200px;          /* tinggi kotak */
    overflow:hidden;       /* sorok teks luar kotak */
    background:#ffffff;
    color:#000000;
    padding:15px;
    border-radius:12px;
}

.news-vertical-text{
    position:relative;
    animation: scrollUp 12s linear infinite;
}

@keyframes scrollUp{
    from{
        transform: translateY(100%);
    }
    to{
        transform: translateY(-100%);
    }
}

