@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Serif Pro', Georgia, serif;
    line-height: 1.6;
    text-align: justify;
    background-color: #f9fbf8;
    color: black;
}

/* ========= HEADER & JUMBOTRON ========= */
.jumbotron {
    padding: 60px 20px;
    background-color: #72b0ab;
    text-align: center;
    font-size: 1.2rem;
    color: white;
}

.jumbotron h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.jumbotron p {
    color: white;
    line-height: 1.4;
}

/* ========= NAVIGASI ========= */
nav {
    background-color: #bcdddc;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

nav a {
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    color: black;
    padding: 6px 12px;
    transition: all 0.2s ease;
    border-radius: 30px;
}

nav a:hover {
    background-color: white;
    font-weight: 600;
    color: black;
}

/* ========= MAIN = FLEX LAYOUT (BUKAN FLOAT) ========= */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Konten artikel utama */
#content {
    flex: 3;
    min-width: 260px;
}

/* Sidebar (aside) */
aside {
    flex: 1;
    min-width: 250px;
}

/* Kartu / Card */
.card {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    transition: transform 0.1s ease;
    border: 1px solid white;
}

.card:hover {
    transform: translateY(-3px);
}

/* Heading di dalam card */
h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: black;
    font-weight: 700;
    border-left: 5px solid #72b0ab;
    padding-left: 16px;
}

h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

/* Gambar responsif */
.images {
    width: 100%;
    /* max-height: 400px; */
    object-fit: cover;
    border-radius: 16px;
    margin: 16px 0;
    display: block;
}

/* Tabel aside */
table {
    width: 100%;
    margin-top: 12px;
}
th {
    text-align: left;
    font-weight: 600;
    padding-right: 12px;
    vertical-align: top;
}
td {
    padding: 4px 0;
}

/* Aside header & figure */
aside header {
    text-align: center;
    margin-bottom: 10px;
}
aside figure {
    margin: 16px 0;
}
aside img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
figcaption {
    margin-top: 8px;
    font-style: italic;
    color: #72b0ab;
}

/* Daftar isi & list styling */
ol, ul {
    padding-left: 1.6rem;
    margin: 16px 0;
}
li {
    margin: 8px 0;
}
a {
    color: grey;
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
    color: black;
    background-color: white;
}

/* Footer */
footer {
    background-color: #72b0ab;
    text-align: center;
    padding: 24px 20px;
    font-weight: 600;
    margin-top: 20px;
    color: white;
    border-top: 1px solid #72b0ab;
}

/* ========= RESPONSIVE MEDIA QUERY (FLEXBOX) ========= */
/* Tablet dan layar sedang */
@media screen and (max-width: 900px) {
    main {
        flex-direction: column;
        gap: 20px;
    }
    #content, aside {
        flex: auto;
        width: 100%;
    }
    .jumbotron h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    nav ul {
        gap: 12px;
    }
    nav a {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

/* Layar ponsel */
@media screen and (max-width: 600px) {
    .jumbotron {
        padding: 40px 16px;
    }
    .jumbotron h1 {
        font-size: 1.6rem;
    }
    .card {
        padding: 18px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .images {
        max-height: 250px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    aside img {
        width: 120px;
        height: 120px;
    }
    table, td, th {
        font-size: 0.9rem;
    }
}