/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Header Mobile */
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #225BD8;
}

.logo img {
    height: 45px;
}

/* Hamburger styling */
#hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

#hamburger span {
    display: block;
    height: 3px;
    background: #E1AA14;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Nav Menu (hidden default) */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 70%;
    background: #222;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000;
}

nav a {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

body.open nav {
    right: 0;
}

/* Button Register di menu mobile */
.btn-register {
    background-color: #E1AA14;
    color: white;
    display: inline-block;
    padding: 10px 15px;
    margin: 15px 20px;
    border-radius: 6px;
    text-shadow: 1px 1px 3px #272727;
}

/* Hero Section */
.hero {
    background-image: url(../../images/background.jpg);
    background-size: cover;
    background-position: center;
    height: 280px;
    font-size: 16px;
    text-align: center;
    padding: 80px 15px;
    color: white;
    font-size: 20px;
    text-shadow: 1px 1px 5px #272727;
}

/* Our Programs */
.programs {
    padding: 30px 20px;
}
.programs h2{
    text-align: center;
    padding-bottom: 10px;
    font-weight: 900;
}
.program-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-item {
    width: 100%;
    text-align: center;
}

.program-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Why Choose */
.why-choose {
    padding: 30px 20px;
    background: url('../images/whychosebackground.png') center/cover no-repeat;
    color: white;
    height: 300px; /* sesuaikan tinggi background */
}

.why-choose h2, 
.why-choose p {
    text-align: left;
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-more {
    display: inline-block;
    background-color: #656565;
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    margin-top: 15px;
    text-decoration: none;
}

.btn-wrapper {
    display: flex;
    justify-content: flex-end;
}

/* News & Events */
.news-events {
    padding: 30px 20px;
}
.news-events h2{
    text-align: center;
    padding-bottom: 10px;
    font-weight: 900;
}
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.news-item h3{
    text-align: center;
}
.news-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Contact & Register */
.contact-register {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
    margin: 0 20px;
    text-align: center;
    background-color: #225BD8; /* biru sesuai acuan */
    color: white; /* biar teksnya kontras */
    border-radius: 8px; /* opsional biar sudut agak bulat */
}
.contact-info p {
    font-size: 20px;
    font-weight: 700;
}
.register-btn p {
    margin-bottom: 20px;
}
.btn-register2 {
    background-color: #E1AA14;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-shadow: 1px 1px 3px #272727;
}

/* Registration Form */
.registration-form {
    padding: 30px 20px;
}
.registration-form h2{
    text-align: center;
}
.registration-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-register-now {
    background-color: #225BD8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
}

/* Social Media */
.social-media h3 {
    text-align: center;
}
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

.social-icons img {
    width: 35px;
    height: 35px;
}

/* Footer */
footer {
    background-color: #225BD8;
    padding: 20px 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
}

.footer-nav a {
    color: white;
}

.footer-copy {
    font-size: 12px;
    text-align: center;
    color: white;
}

/* Versi smartphone: hanya tampil © 2025 Jakarta Multimedia University */
@media (max-width: 576px) {
    .footer-nav {
        display: none; /* sembunyikan menu link footer */
    }
    .footer-copy p {
        display: none; /* sembunyikan teks lama */
    }
    .footer-copy::before {
        content: "© 2025 Jakarta Multimedia University";
        font-size: 12px;
        color: white;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    #hamburger {
        display: none;
    }
    nav {
        position: static;
        flex-direction: row;
        height: auto;
        background: transparent;
        padding-top: 0;
        right: auto;
    }
}