/* PORTAL - FONT & LAYOUT REFINEMENT */

/* 1. Reset & Font Utama */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    /* Segoe UI sebagai prioritas utama */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; /* Agar font lebih halus di macOS/Chrome */
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Styling Header & Footer */
header.sticky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    box-shadow: none !important;
    padding: 5px 0;
    text-align: center;
}

.logo-container {
    display: inline-block;
    padding: 8px 16px; /* Memberi ruang di dalam border */
    border-radius: 50px; /* Membuat border melengkung halus */
    
    /* Border putih tipis dan lembut */
    border: 0px solid rgba(255, 255, 255, 0.4);
    
    /* Tambahan agar terlihat lebih elegan */
    background: rgba(255, 255, 255, 0.1); 
}

.logo-header {
    width: 211px;       /* Atur lebar logo sesuai kebutuhan */
    height: auto;       /* Menjaga proporsi gambar */
    display: block;
    transition: transform 0.3s ease;
}

/* Opsional: Efek saat logo dihover */
.logo-header:hover {
    transform: scale(1.05);
}

.header-text {
    position: relative;
    background: none;
    padding: 15px 40px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tulisan Warna-warni */
.rainbow-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
}

.rainbow-text span:nth-child(1) { color: #4EA0D4; }
.rainbow-text span:nth-child(2) { color: #ff85a1; }
.rainbow-text span:nth-child(3) { color: #4ED4CB; }
.rainbow-text span:nth-child(4) { color: #4EA0D4; margin-right: 15px;}
.rainbow-text span:nth-child(5) { color: #D4AE4E; }
.rainbow-text span:nth-child(6) { color: #a4e05b; }
.rainbow-text span:nth-child(7) { color: #4ED4CB; }
.rainbow-text span:nth-child(8) { color: #4ED4CB; }
.rainbow-text span:nth-child(9) { color: #D4AE4E; }
.rainbow-text span:nth-child(10) { color: #ff85a1; }

/* Gelombang bawah header agar transisi ke portal halus */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 40px;
    background: #f4f7f6; /* Sesuaikan dengan background body */
    border-radius: 100% 100% 0 0;
}

footer.sticky {
    background: #F2F5F4;
    color: black;
    padding: 9px;
    text-align: center;
    font-size: 13px;
    opacity: 0.9;
}

/* 3. Background Content */
.portal-content {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), 
                url('../img/portal_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 4. Portal Container & Title */
.portal-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 20px;
    z-index: 1;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.page-title p {
    font-size: 1.7rem;
    opacity: 0.9;
}

/* 5. Grid & Cards */
.grid-portal {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap; /* Diubah ke wrap agar lebih aman jika layar sangat kecil */
}

.portal-card {
    flex: 0 0 300px;
    background: white;
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #334155; /* Abu-abu gelap agar nyaman dibaca */
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.portal-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.portal-card i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 20px;
    display: block;
}

.portal-card h3 { 
    margin: 0 0 12px 0; 
    font-size: 22px; 
    font-weight: 600;
}

.portal-card p { 
    font-size: 14px; 
    line-height: 1.5;
    color: #64748b; 
    margin: 0; 
}

/* 6. Responsive */
@media (max-width: 650px) {
    .grid-portal { flex-direction: column; align-items: center; }
    .portal-card { width: 85%; }
    .page-title h1 { font-size: 1.8rem; }
}