/* ===========================
   BASE.CSS
   Shared styles untuk semua halaman
   - Font imports
   - Global reset
   - Header
   - Footer
=========================== */

/* Import Poppins font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===========================
   Global Reset & Base Styles
=========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body, input, button, select, textarea {
    background-color: #E7EFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

/* Content utama flexible supaya footer terdorong ke bawah */
main,
section.container,
.main-content {
    flex: 1;
}

/* ===========================
   Links
=========================== */
a {
    color: #0b63d6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #084298;
    text-decoration: underline;
}

/* ===========================
   Header
=========================== */
header {
    width: 100%;
    padding: 0;
    margin: 0;
}

header a {
    display: block;
    width: 100%;
}

/* Logo full saiz asal tapi responsive */
.header-logo {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Responsive logo untuk mobile - tetap full width */
@media (max-width: 768px) {
    .header-logo {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-logo {
        width: 100%;
    }
}

/* ===========================
   Footer
=========================== */
footer {
    background-color: #082E72;
    text-align: center;
    padding: 1rem 1rem;
    margin-top: auto;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: #FFFFFF;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #cce5ff;
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 576px) {
    footer {
        font-size: 0.8rem;
        padding: 1rem 0.5rem;
    }
}

/* ===========================
   Background Classes
=========================== */
.default-bg {
    background-image: url("../images/blueBG_1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ===========================
   Utility Classes
=========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===========================
   Responsive Container
=========================== */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
